示例#1
0
        public async Task <IActionResult> GetPharmacies()
        {
            var pharmacies = await _context.Pharmacy
                             .OrderBy(p => p.PharmacyName)
                             .ToListAsync();

            if (pharmacies.Count != 0)
            {
                return(Ok(_mapper.GetPharmacyDto(pharmacies)));
            }

            return(NotFound());
        }