示例#1
0
        public IActionResult UpdateAppointment(Appointment a)
        {
            int h;

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

            return(Ok(new{ state = h > 0?true:false, msg = h > 0?"修改成功":"修改失败" }));
        }