public Prank Save(Prank prank) { if (prank.PrankId == 0) { db.Pranks.Add(prank); } else { db.Entry(prank).State = System.Data.Entity.EntityState.Modified; } db.SaveChanges(); return(prank); }
public Prank Save(Prank prank) { throw new NotImplementedException(); }