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