Example #1
0
        //To Update the records of a particluar OnlineStatus
        public int UpdateOnlineStatus(OnlineStatus status)
        {
            db.Entry(status).State = EntityState.Modified;
            db.SaveChanges();

            return(1);
        }
Example #2
0
 //To Add new OnlineStatus record
 public int AddOnlineStatus(OnlineStatus status)
 {
     db.OnlineStatus.Add(status);
     db.SaveChanges();
     return(1);
 }