public void Delete(int id) //Upadate single records { tbl_Guide Guide = db.tbl_Guide.Find(id); db.tbl_Guide.Remove(Guide); save(); }
// GuideCustomModel METHODS public int Insert_Guide(GuideCustomModel model) { tbl_Guide Guide = model.Guide; int id = Guide_Obj.Insert(Guide); return(id); }
public int Insert(tbl_Guide obj) //Insert single records { db.tbl_Guide.Add(obj); save(); int Id = obj.ID; return(Id); }
public void Upadate(tbl_Guide obj) //Upadate single records { db.Entry(obj).State = System.Data.Entity.EntityState.Modified; save(); }
public tbl_Guide GetById(int id) //get single records { tbl_Guide Guide = db.tbl_Guide.Find(id); return(Guide); }
public void Update_Guide(GuideCustomModel model) { tbl_Guide Guide = model.Guide; Guide_Obj.Upadate(Guide); }