public static RemoteCustomer checkUserRemoteAvailability(string mobile) { using (POCDBContext context = new POCDBContext()) { RemoteCustomer customer = new RemoteCustomer(); dynamic customers = context.spCheckRemoteAvailability(mobile).FirstOrDefault(); if (customers != null) { customer.address = customers.address; customer.mobile = customers.mobile; customer.DOB = customers.DOB; customer.firstname = customers.firstname; customer.lastname = customers.lastname; customer.address = customers.address; customer.city = customers.city; customer.PIN = customers.PIN; customer.state = customers.state; customer.country = customers.country; } else { customer = (RemoteCustomer)customers; } return(customer); } }
public static RemoteCustomer checkUserRemoteAvailability(string mobile) { using (POCDBContext context = new POCDBContext()) { RemoteCustomer customer = new RemoteCustomer(); dynamic customers = context.spCheckRemoteAvailability(mobile).FirstOrDefault(); if (customers != null) { customer.address = customers.address; customer.mobile = customers.mobile; customer.DOB = customers.DOB; customer.firstname = customers.firstname; customer.lastname = customers.lastname; customer.address = customers.address; customer.city = customers.city; customer.PIN = customers.PIN; customer.state = customers.state; customer.country = customers.country; } else customer = (RemoteCustomer)customers; return customer; } }