Beispiel #1
0
 public IActionResult Put([FromBody] User user)
 {
     if (ModelState.IsValid)
     {
         _userBL.Update(user);
         return(Ok());
     }
     return(BadRequest());
 }
 public IActionResult Put([FromBody] Project project)
 {
     if (ModelState.IsValid)
     {
         _projectBL.Update(project);
         return(Ok());
     }
     return(BadRequest());
 }