Beispiel #1
0
 public void SubmitForm(DailyPlanEntity roleEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         roleEntity.PlanId = keyValue.ToInt();
         service.Update(roleEntity);
     }
     else
     {
         roleEntity.AddTime  = DateTime.Now;
         roleEntity.DeadLine = DateTime.Now.AddDays(1);
         service.Insert(roleEntity);
     }
 }
 public ActionResult SubmitForm(DailyPlanEntity userEntity, string keyValue)
 {
     dailyPlanApp.SubmitForm(userEntity, keyValue);
     return(Success("操作成功。"));
 }