public bool SetCustomerPONumber(CustomerPONumberView model) { var query = WorkOrderQueries.SetCustomerPONumber; var parameters = DataHelper.ExtractParameters(model); dbContext.ExecuteNonQuery(query, parameters); return(true); }
public ActionResult <bool> SetCustomerPONumber([FromBody] CustomerPONumberView value) { try { var result = db.SetCustomerPONumber(value); return(result); } catch (Exception) { throw; } }
public async Task <IActionResult> SetCustomerPONumber([FromBody] CustomerPONumberView value) { try { var result = await api.Post <CustomerPONumberView, bool>("WorkOrder/SetCustomerPONumber", value); return(Json(result)); } catch (Exception ex) { throw ex; } }