public IActionResult Put([FromBody] User user)
 {
     try
     {
         service.Put <UserValidator>(user);
         return(new ObjectResult(user.Id));
     }
     catch (ArgumentNullException ex)
     {
         return(NotFound(ex));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }