Example #1
0
        private void DeleteButtonCommand()
        {
            _floorService.Delete(_floor);
            _floor = _floorService.GetFloorList().FirstOrDefault();
            LoadFloor(_floor);

            if (null == _floor)
            {
                _floor       = _floorService.CreateEmptyFloor(DefaultFloorName);
                _currentMode = SettingsModes.CreatingNew;
            }
            _currentMode = SettingsModes.Preview;
        }
        public async Task <IHttpActionResult> Delete([FromBody] int id)
        {
            await _floorService.Delete(id);

            return(Ok());
        }
Example #3
0
 // DELETE: api/Floors/23005604-eb1b-11de-85ba-806d6172696f
 public void Delete(Guid id)
 {
     Service.Delete(Service.GetFloor(id));
 }