public int ValidateCustomer(string input) { try { int id = int.Parse(input.Trim()); return(DAL.ValidateCustomer(id)); } catch (FormatException) { return(DAL.ValidateCustomer(name: input.Trim().Split(" "))); } }
public Customer ValidateCustomer(Customer customer) { customer.Password = ComputeSha256Hash(customer.Password); return(_customerDAL.ValidateCustomer(customer)); }