I have a method that Authenticate user I need to retunr the customer info when record existed in database and retinr statuscode=202 and status desciption when user is not existed.
this is my method:
public partial class GetCustomerInfo
{
private static readonly GetCustomerInfo _instance = new GetCustomerInfo();
private GetCustomerInfo() { }
public static GetCustomerInfo Instance
{
get { return _instance; }
}
public Model.Customer returnCustomerInfo(string Username, string Pass)
{
Model.Customer customer = null;
DAL.DataManager dal = new DAL.DataManager();
customer = dal.GetCustomerInfo(Username, Pass); //To verify if the credentials are valid or not
if (customer== null)
{
customer.StatusCode = 202;
Go to the complete details ...