예제 #1
0
        public IActionResult DeleteSchedule(int id)
        {
            try
            {
                bool succes = _scheduleLogic.Delete(id);
                if (!succes)
                {
                    return(NotFound());
                }

                return(Ok("Schedule is delted"));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, "Internal server error"));
            }
        }