public assignment Save(assignment assignment)
 {
     if (assignment.assignment_id == null)
     {
         db.assignments.Add(assignment);
     }
     else
     {
         db.Entry(assignment).State = System.Data.Entity.EntityState.Modified;
     }
     db.SaveChanges();
     return(assignment);
 }
 public void Delete(assignment assignment)
 {
     db.assignments.Remove(assignment);
     db.SaveChanges();
 }