Пример #1
0
        public IActionResult InsertAppointment(Appointment a)
        {
            int h;

            try
            {
                h = bll.InsertAppointment(a);
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
                throw;
            }

            return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "预约已提交,请等待审核" : "预约提交失败" }));
        }