public ActionResult <DeleteWorkingHours> DeleteWorkingHours(DeleteWorkingHours model)
        {
            try
            {
                IMapper mapper = EDeliveryProfile.DeleteWorkingHours();
                var     existingWorkingHours = mapper.Map <WorkingHours>(model);

                var userIdClaim = User.FindFirst("MemberId")?.Value;
                var memberId    = int.TryParse(userIdClaim, out var id) ? id : 0;

                EDeliveryDBContext dBContext = new EDeliveryDBContext();
                var restaurantId             = dBContext.Restaurant.First(o => o.MemberId == memberId).RestaurantId;
                existingWorkingHours.RestaurantId = restaurantId;

                _repository.DeleteWorkingHours(existingWorkingHours);
                return(Ok());
            }
            catch (Exception ex)
            {
                _logger.LogError($"Failed to delete working hours:{ex}");
                return(BadRequest());
            }
        }