public static tppoint UpdatePPoint(tppoint post) { using (vooEntities context = new vooEntities()) { context.Entry(post).State = EntityState.Modified; context.SaveChanges(); } return post; }
public static tppoint CreatePPoint(tppoint post) { using (vooEntities context = new vooEntities()) { context.tppoints.Add(post); context.SaveChanges(); } return post; }
public static tppoint UpdatePPoint(tppoint post) { using (vooEntities context = new vooEntities()) { context.Entry(post).State = EntityState.Modified; context.SaveChanges(); } return(post); }
public static tppoint CreatePPoint(tppoint post) { using (vooEntities context = new vooEntities()) { context.tppoints.Add(post); context.SaveChanges(); } return(post); }
public HttpResponseMessage Put(tppoint e) { var ppoint = BLLPpoint.UpdatePPoint(e); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, ppoint); return response; }
public HttpResponseMessage Delete(tppoint e) { BLLPpoint.DeletePPoint(e.ID_PPOINT.ToString()); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK); return response; }