Пример #1
0
 public ActionResult ValidateGroupUpdate([FromBody] Group group)
 {
     try
     {
         GroupServiceValidator.ValidateUpdateGroup(group);
         return(Ok());
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
 public Group UpdateGroup(Group group)
 {
     GroupServiceValidator.ValidateUpdateGroup(group);
     return(_groupepository.UpdateGroup(group));
 }