public SchoolDistrict Update(SchoolDistrict update) { DateTime now = DateTime.Now; update.LastUpdated = now; _schoolDistricts.Update(update); return(update); }
public SchoolDistrict Create(SchoolDistrict create) { DateTime now = DateTime.Now; create.Created = now; create.LastUpdated = now; _schoolDistricts.Add(create); return(create); }
public SchoolDistrict CreateOrUpdate(SchoolDistrict update) => CreateOrUpdate(DateTime.Now, update);
public SchoolDistrict CreateOrUpdate(DateTime time, SchoolDistrict update) => CreateOrUpdateMany(time, new[] { update })[0];