public HttpResponseMessage Delete([FromBody] Models.inventory_adjustment inventory_adjustment) { try { bool data = inventoryAdjustmentRepository.DeleteInventoryAdjustment(inventory_adjustment.inventory_adjustment_id); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation { output = "success", msg = "Delete Successfully." }, formatter)); } catch (Exception ex) { var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation { output = "error", msg = ex.ToString() }, formatter)); } }
public int DeleteInventoryAdjustment(long invAdjId) { return(_inventoryAdjustmentRepository.DeleteInventoryAdjustment(invAdjId)); }