Exemplo n.º 1
0
        public async Task <bool> Update()
        {
            string startTime     = HttpContext.Request.Form["startTime"];
            string endTime       = HttpContext.Request.Form["endTime"];
            string startPointId  = HttpContext.Request.Form["startPointId"];
            string endPointId    = HttpContext.Request.Form["endPointId"];
            string timeSlotIdStr = HttpContext.Request.Form["timeSlotId"];
            int    timeSlotId    = int.Parse(timeSlotIdStr);

            return(await _service.UpdateTimeSlot(timeSlotId, startTime, endTime, startPointId, endPointId));
        }