예제 #1
0
 public int ActivateProject(Projects project)
 {
     try
     {
         db.Entry(project).State = EntityState.Modified;
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }
예제 #2
0
 public int UpdateSession(Sessions session)
 {
     try
     {
         db.Entry(session).State = EntityState.Modified;
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }