public async Task <CreateCustomerRes> CreateCustomer(CreateCustomerReq request)
        {
            DynamicParameters parameters = new DynamicParameters();

            parameters.Add(name: "@FirstName", request.FirstName);
            parameters.Add(name: "@LastName", request.LastName);
            parameters.Add(name: "@DateOfBirth", request.DateOfBirth);
            parameters.Add(name: "@Address", request.Address);
            parameters.Add(name: "@PhoneNumber", request.PhoneNumber);
            parameters.Add(name: "@IdentityNumber", request.IdentityNumber);
            parameters.Add(name: "@Email", request.Email);
            parameters.Add(name: "@Gender", request.Gender);
            parameters.Add(name: "@DateOfIssuanceIdentityNumber", request.DateOfIssuanceIdentityNumber);
            parameters.Add(name: "@PlaceOfIssuanceIdentityNumber", request.PlaceOfIssuanceIdentityNumber);
            using (var result = SqlMapper.QueryFirstOrDefaultAsync <CreateCustomerRes>(
                       cnn: connection,
                       sql: "[sp_CreateCustomer]",
                       param: parameters,
                       commandType: CommandType.StoredProcedure))
            {
                try
                {
                    return(await result);
                }
                catch (Exception)
                {
                    return(new CreateCustomerRes());
                }
            }
        }
 public async Task <IActionResult> CreateCustomer(CreateCustomerReq request)
 {
     return(Ok(await _customerServices.CreateCustomer(request)));
 }
 public async Task <CreateCustomerRes> CreateCustomer(CreateCustomerReq request)
 {
     return(await _customerRepository.CreateCustomer(request));
 }