public HttpResponseMessage Get() { List <DebitCategoryDTO> DebitCategorylist = service.getAll(); return(Request.CreateResponse(HttpStatusCode.OK, DebitCategorylist)); }
public IViewComponentResult Invoke() { return(View(debitCategoryService.getAll())); }