//To Update the records of a particluar OnlineStatus public int UpdateOnlineStatus(OnlineStatus status) { db.Entry(status).State = EntityState.Modified; db.SaveChanges(); return(1); }
//To Add new OnlineStatus record public int AddOnlineStatus(OnlineStatus status) { db.OnlineStatus.Add(status); db.SaveChanges(); return(1); }