Example #1
0
 public IHttpActionResult AddShiftDetails([FromBody] Shift shift)
 {
     if (ModelState.IsValid && shift != null)
     {
         if (_info.AddShiftInfo(shift))
         {
             return(Created("api/PlantConfiguration/Shift", shift));
         }
         return(BadRequest("Not able to add product details  to the database see errorlog for more information"));
     }
     return(BadRequest("please enter valid product details"));
 }