示例#1
0
        public async Task <bool> InserCustomerCheck(CustomerCheck check)
        {
            var p = AddOutputParam("id");

            p.Add("customerId", check.CustomerId);
            p.Add("partnerId", check.PartnerId);
            p.Add("status", check.Status);
            p.Add("createdtime", DateTime.Now);
            p.Add("createdby", check.CreatedBy);
            using (var con = GetConnection())
            {
                await con.ExecuteAsync("sp_InserCustomerCheck", p, commandType : CommandType.StoredProcedure);

                return(true);
            }
        }
 public IValidationResult Customer(Customer customer)
 {
     return(CustomerCheck.Customer(customer));
 }