public async Task <JsonResult> GetByItemCategory(string api, string category) { try { var data = IS_ItemService.GetByItemCategory(Guid.Parse(api), Guid.Parse(category)); return(Success(IS_ItemVM.MsToVMs(data))); } catch { return(Failed(MessageUtility.ServerError())); } }
public async Task <JsonResult> GetByAPI(string id) { try { var data = IS_ItemService.GetByAPI(Guid.Parse(id)); return(Success(IS_ItemVM.MsToVMs(data))); } catch { return(Failed(MessageUtility.ServerError())); } }