/// <summary> /// Delete an item from the list /// </summary> /// <param name=<em>"id"</em>>id of the item to be deleted</param> // DELETE: api/Floor/5 public bool Delete(int id) { if (id >= 0) { return(_FloorService.DeleteFloor(id)); } return(false); }
public async Task <IActionResult> DeleteFloor(DeleteFloorDTO input) { try { await _floorService.DeleteFloor(input); return(Ok()); } catch (Exception) { throw; } }
public ActionResult DeleteFloor(Int32?id) { try { if (!_floorService.DeleteFloor(id)) { return(RedirectToAction("Index", "Error")); } } catch (Exception ex) { base.Log(ex); } finally { } return(null); }
public IHttpActionResult Delete(int floorID) { var response = service.DeleteFloor(floorID); return(Ok(response)); }