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);
     }
 }
Beispiel #2
0
        public ProjectName Load(int Id)
        {
            IprojectRep iproject = new ProjectRep();

            return(iproject.Load(Id));
        }
Beispiel #3
0
        public void Update(ProjectName mod)
        {
            IprojectRep iproject = new ProjectRep();

            iproject.Update(mod);
        }
Beispiel #4
0
        public void Save(ProjectName mod)
        {
            IprojectRep iproject = new ProjectRep();

            iproject.Insert(mod);
        }
Beispiel #5
0
        public List <ProjectName> LoadMain()
        {
            IprojectRep iproject = new ProjectRep();

            return(iproject.LoadMain());
        }
        public List <ProjectName> projectNames()
        {
            IprojectRep projectRep = new ProjectRep();

            return(projectRep.LoadMain());
        }