Ejemplo n.º 1
0
 public HttpResponseMessage Delete(MenuViewModel menuViewModel)
 {
     try
     {
         return(Request.CreateResponse(HttpStatusCode.OK, m_MenuBusiness.Delete(menuViewModel)));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest,
                                            string.Format("Error:{0}!", ex.Message)));
     }
 }
Ejemplo n.º 2
0
 public async Task <ViewResult <bool> > Delete(int id)
 {
     return(await _menuBusiness.Delete(id));
 }