Ejemplo n.º 1
0
 public ActionResult Delete(int id)
 {
     try
     {
         _addressApplicationService.Delete(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(new { ex.Message }));
     }
 }
Ejemplo n.º 2
0
        public ActionResult Delete(int id)
        {
            applicationServiceAddress.Delete(id);

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