public async Task <JsonResult> GetAll() { try { var data = ItemCategoryService.GetAll(); return(Success(ItemCategoryVM.MsToVMs(data))); } catch { return(Failed(MessageUtility.ServerError())); } }
public ActionResult GetAll() { item.GetAll(); return(View()); }