Exemple #1
0
 public ActionResult AddOrEdit(Team.Team team)
 {
     if (team.Id == 0)
     {
         team.Creator        = Common.CommonHelper.CurrentUser;
         team.LastModifier   = team.Creator;
         team.LastModifyTime = DateTime.Now;
         _teamAppService.AddTeam(team);
         return(Json(new { success = true, message = "新增科室信息成功!" }, JsonRequestBehavior.AllowGet));
     }
     else
     {
         team.LastModifier   = Common.CommonHelper.CurrentUser;
         team.LastModifyTime = DateTime.Now;
         _teamAppService.UpdateTeam(team);
         return(Json(new { success = true, message = "更新科室信息成功!" }, JsonRequestBehavior.AllowGet));
     }
 }