public CreateProductOrderOut CreateProductOrder(CreateProductOrderIn input) { CreateProductOrderOut response = new CreateProductOrderOut() { ResponseCode = Entities.Client.General.ResponseCode.Error }; using (IDbConnection connection = new SqlConnection(connectionString)) { connection.Open(); DynamicParameters param = new DynamicParameters(); var data = connection.Query("INSERT INTO tbl_ProductOrder(ProductId,OrderId,Quantity,UnitPrice) VALUES('" + input.ProductId + "'," + input.OrderId + "," + input.Quantity + "," + input.UnitPrice + ")"); response.ResponseCode = Entities.Client.General.ResponseCode.Success; } return(response); }
public IHttpActionResult CreateProductOrder(CreateProductOrderIn input) { var response = client.CreateProductOrder(input); return(Ok(response)); }
public CreateProductOrderOut CreateProductOrder(CreateProductOrderIn input) { return(orderDA.CreateProductOrder(input)); }