public IActionResult Delete([FromQuery] int gid)
 {
     try
     {
         var result = garageService.DeleteGarage(gid);
         return(StatusCode(StatusCodes.Status200OK, result));
     }
     catch (Exception e)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, e.Message));
     }
 }
Example #2
0
 public IActionResult Delete(Guid id)
 {
     _garageService.DeleteGarage(id);
     return(RedirectToAction("Index"));
 }