Пример #1
0
 public ActionResult Delete(int id)
 {
     try
     {
         _addressApplicationService.Delete(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(new { ex.Message }));
     }
 }
Пример #2
0
        public ActionResult Delete(int id)
        {
            applicationServiceAddress.Delete(id);

            return(Ok("Address deleted successfully!"));
        }