示例#1
0
 public arpitphone Save(arpitphone arpitphones)
 {
     if (arpitphones.s_no == 0)
     {
         db.arpitphones.Add(arpitphones);
     }
     else
     {
         db.Entry(arpitphones).State = System.Data.Entity.EntityState.Modified;
     }
     db.SaveChanges();
     return(arpitphones);
 }
示例#2
0
 public void Delete(arpitphone arpitphones)
 {
     db.arpitphones.Remove(arpitphones);
     db.SaveChanges();
 }