public HttpResponseMessage Delete([FromBody] Models.warehouse warehouse) { try { bool deletewarehouse = warehouseRepository.DeleteWarehouse(warehouse.warehouse_id, warehouse.updated_by); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation { output = "success", msg = "Warehouse Deleted Successfully." }, formatter)); } catch (Exception ex) { var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation { output = "error", msg = ex.ToString() }, formatter)); } }
public void DeleteWarehouse(int id) { _warehouseRepository.DeleteWarehouse(id); }
public ResModel DeleteWarehouse(Guid warehouseId) { return(_warehouseRepository.DeleteWarehouse(warehouseId)); }
public void DeleteWarehouse(Warehouse warehouse) { repository.DeleteWarehouse(warehouse); }
public ActionResult DeleteConfirmed(int id) { warehouseRepository.DeleteWarehouse(id); return(RedirectToAction("Index")); }
public async Task DeleteWarehouse(WarehouseEntity warehouse, string userUniqueName) { await warehouseRepository.DeleteWarehouse(warehouse, userUniqueName); }