Exemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <Calendar> > > GetCalendarByBarber(string salonId, string barberId)
        {
            try
            {
                var beauty = await _repository.GetCalendarByBarber(salonId, barberId);

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