Example #1
0
        public ActionResult <WorkingHours[]> EditWorkingHours(int doctorId, int workingHoursId, [FromBody] WorkingHours edited)
        {
            WorkingHours old = doctorService.GetWorkingHoursById(workingHoursId);

            if (old == null)
            {
                return(NotFound());
            }
            WorkingHours result = doctorService.EditWorkingHours(old, edited);

            return(Ok(result));
        }