Пример #1
0
 public IActionResult ActivateDron(int id)
 {
     if (id < 1)
     {
         return(BadRequest("id is less then 1"));
     }
     try
     {
         var result = _userAccountService.ActivateDron(id);
         return(Ok(result));
     }
     catch (ArgumentException)
     {
         return(BadRequest("id is less then 1"));
     }
     catch (Exception)
     {
         return(StatusCode(500));
     }
 }