예제 #1
0
        public async Task <ActionResult> GetById(int id)
        {
            var response = await _supplierManager.GetAsync(a => a.SupplierId == id);

            if (response == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(response));
            }
        }