public async Task <APIResult> Gets() { var rs = await uomQueries.GetsAsync(); return(new APIResult() { Result = 0, Data = rs }); }
public async Task <APIResult> GetUOMs() { var rs = (await uomQueries.GetsAsync()).Select(x => new SelectListItem() { Text = x.Code, Value = x.Id.ToString() }); return(new APIResult() { Result = 0, Data = rs }); }