public void Put(int id, [FromBody] ShelterList shelterList) { shelterList.ShelterListId = id; _db.Entry(shelterList).State = EntityState.Modified; _db.SaveChanges(); }
public void Post([FromBody] ShelterList shelterList) { _db.ShelterList.Add(shelterList); _db.SaveChanges(); }