public HttpResponseMessage GetAll() { try { return(Request.CreateResponse(HttpStatusCode.OK, _business.GetAll())); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }
public ActionResult Index() { return(View(_business.GetAll())); }