Пример #1
0
        public async Task <ActionResult <IEnumerable <ServiceType> > > GetServiceTypeByCategory(string id)
        {
            try
            {
                var beauty = await _repository.GetServiceTypeByCategory(id);

                return(Ok(beauty));
            }
            catch (Exception exc)
            {
                _logger.LogError($"Error: {exc}");
                // transaction.Rollback();
                return(NotFound());
            }
        }