public int AddProjectRepCheckDuplicate(ProjectRep field) { try { if (field == null) { return(-2); } using (var db = new DPRDataMigrationEngineDBEntities()) { db.ProjectReps.Add(field); return(db.SaveChanges()); } } catch (Exception ex) { ErrorLogger.LogEror(ex.StackTrace, ex.Source, ex.Message); return(0); } }
public ProjectName Load(int Id) { IprojectRep iproject = new ProjectRep(); return(iproject.Load(Id)); }
public void Update(ProjectName mod) { IprojectRep iproject = new ProjectRep(); iproject.Update(mod); }
public void Save(ProjectName mod) { IprojectRep iproject = new ProjectRep(); iproject.Insert(mod); }
public List <ProjectName> LoadMain() { IprojectRep iproject = new ProjectRep(); return(iproject.LoadMain()); }
public List <ProjectName> projectNames() { IprojectRep projectRep = new ProjectRep(); return(projectRep.LoadMain()); }