Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> DeleteFloor(DeleteFloorDTO input)
        {
            try
            {
                await _floorService.DeleteFloor(input);

                return(Ok());
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 3
0
        public ActionResult DeleteFloor(Int32?id)
        {
            try {
                if (!_floorService.DeleteFloor(id))
                {
                    return(RedirectToAction("Index", "Error"));
                }
            }
            catch (Exception ex) {
                base.Log(ex);
            }
            finally {
            }

            return(null);
        }
Ejemplo n.º 4
0
        public IHttpActionResult Delete(int floorID)
        {
            var response = service.DeleteFloor(floorID);

            return(Ok(response));
        }