Пример #1
0
        public ApiResponse <dynamic> CheckCustomer(string email)
        {
            var customerSummary = _customerServices.GetCustomerSummaryByEmail(email.Trim());

            if (customerSummary != null)
            {
                return(ApiUtility.ApiSuccess <dynamic>(new { VerifiedCustomerFound = customerSummary.IsVerifiedCustomer, IsNewCustomer = false }, "This email already present for an existing customer"));
            }
            else
            {
                return(ApiUtility.ApiSuccess <dynamic>(new { VerifiedCustomerFound = false, IsNewCustomer = true }, "Not found any existing customer"));
            }
        }