コード例 #1
0
 public void Put(int id, [FromBody] ShelterList shelterList)
 {
     shelterList.ShelterListId    = id;
     _db.Entry(shelterList).State = EntityState.Modified;
     _db.SaveChanges();
 }
コード例 #2
0
 public void Post([FromBody] ShelterList shelterList)
 {
     _db.ShelterList.Add(shelterList);
     _db.SaveChanges();
 }