コード例 #1
0
        public async Task <ActionResult <IEnumerable <ServiceType> > > GetServiceTypeByName(string name)
        {
            try
            {
                var beauty = await _repository.GetServiceTypeByName(name);

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