public ActionResult <object> UpdateStatus([FromBody] b_appointment_consultationVM model, int AC_ID) { b_appointment_consultation_Entity entity = new b_appointment_consultation_Entity { AC_Status = 1, Processing_Result = model.Processing_Result }; this.SetUpdateUserInfo(entity); return(this._repository.Update(entity, AC_ID).ResponseSuccess()); }
public ActionResult <object> Post([FromBody] b_appointment_consultationVM model, string code) { if (string.IsNullOrWhiteSpace(code) || string.IsNullOrWhiteSpace(HttpContext.Session.GetString(Constant.Session_CheckCode)) || !code.ToLower().Equals(HttpContext.Session.GetString(Constant.Session_CheckCode).ToLower())) { return(this.ResponseUnknown("验证码错误")); } HttpContext.Session.Remove(Constant.Session_CheckCode); b_appointment_consultation_Entity entity = model.ConvertToT <b_appointment_consultation_Entity>(); entity.Create_User = model.Contacts; entity.Create_UserId = "-1"; return(this._repository.Insert(entity).ResponseSuccess()); }