Пример #1
0
 public IActionResult Update([FromBody] Member member)
 {
     try
     {
         var updatedMember = _dal.UpdateMember(member);
         return(updatedMember != null ? (IActionResult)Accepted(updatedMember) : BadRequest());
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }