Example #1
0
        //public List<Notes> ReadAll(int userid, PagingAttributes pagingAttributes)
        //{
        //    SovaContext db = new SovaContext();
        //    return db.Notes
        //        .Where(x => x.Userid == userid)
        //        .Skip(pagingAttributes.Page * pagingAttributes.PageSize)
        //        .Take(pagingAttributes.PageSize).ToList();
        //}

        public void Update(Notes updateNote)
        {
            SovaContext db = new SovaContext();

            db.Update(updateNote);
            db.SaveChanges();
        }
        public void UpdateMarking(Marking marking)
        {
            SovaContext db = new SovaContext();

            db.Update(marking);
            db.SaveChanges();
        }