コード例 #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!"));
        }