public CustomerModel GetDetailsForUserById(int id)
        {
            var dbCustomer        = URepository.GetCustoemrById(id);
            var convertedCustomer = FromDbToProgram.ConvertCustomer(dbCustomer);

            return(convertedCustomer);
        }
 public CustomerModel LogIn(UserLoginModel user)
 {
     if (ValidateLoginInput(user))
     {
         var dbCustoemr        = URepository.GetCustomerByPhoneAndPassword(user.PhoneNumber, user.Password);
         var convertedCustomer = FromDbToProgram.ConvertCustomer(dbCustoemr);
         return(convertedCustomer);
     }
     else
     {
         return(null);
         // write to log info - attempt to log in unsuccessful
     }
 }