public ActionAnswer AddFloor() { return(AccountAction(() => { var wId = mBuildingRepository.AddFloor(); mActionChanges.Floors.Add(mBuildingRepository.GetFloor(wId)); }, "Add floor", -10)); }
public Floor Post() { var wId = BuildingRepository.AddFloor(); return(BuildingRepository.GetFloor(wId)); }