public Util.Util.StatusCode Build(Guid divisionId, IBuildable template) { var building = template.Clone(); var site = Divisions.First(division => division.Id == divisionId); if (site.CanBuild(building)) { site.Build(building); return(Util.Util.StatusCode.Success); } else { return(Util.Util.StatusCode.Fail); } }
internal void Edit(Division division) { DivisionSQL.Update(division.Id, division.Name); Divisions.First(d => d.Id == division.Id).Name = division.Name; }