Beispiel #1
0
        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);
        }
Beispiel #3
0
        public int Insert(tbl_Guide obj)                //Insert single records
        {
            db.tbl_Guide.Add(obj);

            save();

            int Id = obj.ID;

            return(Id);
        }
Beispiel #4
0
        public void Upadate(tbl_Guide obj)                //Upadate single records
        {
            db.Entry(obj).State = System.Data.Entity.EntityState.Modified;

            save();
        }
Beispiel #5
0
        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);
        }