Example #1
0
        public void CreateComment(Managercomment comment)
        {
            display d = new display();

            d.comments.Add(comment);
            d.SaveChanges();
        }
Example #2
0
        public void Delete(int id)
        {
            display        d  = new display();
            Managercomment mn = SearchById(id, d);

            d.comments.Remove(mn);
            d.SaveChanges();
        }
Example #3
0
        public void Edit(Managercomment m, int id)
        {
            display        d   = new display();
            Managercomment man = SearchById(id, d);

            man.comment   = m.comment;
            man.protaskId = m.protaskId;
            d.SaveChanges();
        }
Example #4
0
        // PUT: api/managercomm/5
        public void Put(int id, Managercomment value)
        {
            managercomm_repository manrepo = new managercomm_repository();

            manrepo.Edit(value, id);
        }
Example #5
0
        // POST: api/managercomm
        public void Post(Managercomment value)
        {
            managercomm_repository manrepo = new managercomm_repository();

            manrepo.CreateComment(value);
        }