public ActionResult AllocationRaltion(string CredentialsId, string ProjectDetailId, string ProjectId) { foreach (var item in CredentialsId.Split(',')) { var certEntity = credentialsIBLL.Gettc_CredentialsEntity(item); if (certEntity == null) { return(Fail("该用户证书不存在")); } tc_RelationEntity tc = new tc_RelationEntity() { ProjectDetailId = ProjectDetailId, ProjectId = ProjectDetailId, F_CertId = item, F_PersonId = certEntity.F_PersonId, F_RelationStatus = 1 //未确认状态 }; RelationIBLL.SaveEntity("", tc); } return(Success("分配成功")); }
public ActionResult SaveForm(string keyValue, tc_RelationEntity entity) { RelationIBLL.SaveEntity(keyValue, entity); return(Success("保存成功!")); }