コード例 #1
0
        public static tppoint UpdatePPoint(tppoint post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return post;
        }
コード例 #2
0
        public static tppoint CreatePPoint(tppoint post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.tppoints.Add(post);
                context.SaveChanges();
            }

            return post;
        }
コード例 #3
0
        public static tppoint UpdatePPoint(tppoint post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return(post);
        }
コード例 #4
0
        public static tppoint CreatePPoint(tppoint post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.tppoints.Add(post);
                context.SaveChanges();
            }

            return(post);
        }
コード例 #5
0
 public HttpResponseMessage Put(tppoint e)
 {
     var ppoint = BLLPpoint.UpdatePPoint(e);
     HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, ppoint);
     return response;
 }
コード例 #6
0
 public HttpResponseMessage Delete(tppoint e)
 {
     BLLPpoint.DeletePPoint(e.ID_PPOINT.ToString());
     HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK);
     return response;
 }