From 57c5f9f81570b6051c527a38fa4addbe2dd40fcc Mon Sep 17 00:00:00 2001 From: didier amyot Date: Mon, 18 Sep 2023 10:50:24 -0400 Subject: [PATCH] added defaults to robot request fields --- RobotsWantedLeague/Controllers/RobotsController.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RobotsWantedLeague/Controllers/RobotsController.cs b/RobotsWantedLeague/Controllers/RobotsController.cs index dbd1087..3ddc848 100644 --- a/RobotsWantedLeague/Controllers/RobotsController.cs +++ b/RobotsWantedLeague/Controllers/RobotsController.cs @@ -6,6 +6,13 @@ using RobotsWantedLeague.Services; namespace RobotsWantedLeague.Controllers; public class RobotRequest{ + public RobotRequest(){ + this.Name = ""; + this.Country = ""; + this.Height = 0; + this.Weight = 0; + } + public string Name { get; set; } public int Height { get; set; } public int Weight { get; set; }