Exemple #1
0
        public async Task <ActionResult <IEnumerable <Calendar> > > GetCalendarByDate(string fromdate, string todate, string salonId)
        {
            try
            {
                var beauty = await _repository.GetCalendarByDate(Convert.ToDateTime(fromdate), Convert.ToDateTime(todate), salonId);

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