public int Create(SportField field) { //TODO Fix it this.fields.Add(field); this.fields.SaveChanges(); return 0; }
public void Destroy(SportField field) { this.fields.Delete(field); this.fields.SaveChanges(); }
public void Update(SportField field) { this.fields.Update(field); this.fields.SaveChanges(); }