public ActionResult FunctionInsert(TS_FUNCTIONDTO fcDto) { fcDto.Title = "权限添加"; if (!ModelState.IsValid) { return(View(fcDto)); } else if (!basicsService.ValidateIsRepeat(fcDto, 0)) { ModelState.AddModelError("error", "权限重复"); return(View(fcDto)); } else { fcDto.C_EMP_ID = BaseUser.Id; fcDto.C_EMP_NAME = BaseUser.Name; fcDto.D_MOD_DT = DateTime.Now; basicsService.FunctionInsert(fcDto); fcDto.ResultType = 1; return(View(fcDto)); } }