public ActionResult <List <ListOfWorkingDays> > ListOfWorkingDays(int restaurantId) { try { var result = _repository.GetListOfWorkingDays(restaurantId); IMapper mapper = EDeliveryProfile.GetListOfWorkingDays(); return(mapper.Map <List <ListOfWorkingDays> >(result)); } catch (Exception ex) { _logger.LogError($"Failed to get list of the working days: {ex}"); return(BadRequest("Failed to get list of the working days")); } }