예제 #1
0
        public async Task <APIResult> Gets()
        {
            var rs = await uomQueries.GetsAsync();

            return(new APIResult()
            {
                Result = 0,
                Data = rs
            });
        }
예제 #2
0
        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
            });
        }