示例#1
0
 public string Post([FromBody] BcProject bcproject)
 {
     //Create
     db.BcProject.Add(bcproject);
     db.SaveChanges();
     return(JsonConvert.SerializeObject(bcproject));
 }
示例#2
0
 public string Delete([FromBody] BcProject bcproject)
 {
     db.BcProject.Remove(bcproject);
     db.SaveChanges();
     return(JsonConvert.SerializeObject("Ok"));
 }
示例#3
0
 public void Put(int id, [FromBody] BcProject bcproject)
 {
     //Update
     db.BcProject.Update(bcproject);
     db.SaveChanges();
 }