public void Delete([FromBody] Models.IncidentStaff staff) { this._db.IncidentStaffs.Attach(staff); this._db.Entry(staff).State = System.Data.Entity.EntityState.Deleted; this._db.SaveChanges(); }
public void PostSingle([FromBody] Models.IncidentStaff value) { this._db.IncidentStaffs.Add(value); this._db.SaveChanges(); }
public void Post([FromBody] Models.IncidentStaff staff) { this._db.IncidentStaffs.Add(staff); this._db.SaveChanges(); }