Esempio n. 1
0
        public Client GetClientByUP(string user, string password)
        {
            DAL.Entity.Client client       = _dal.GetClientByUP(user, password);
            BLL.Models.Client clientResult = null;

            clientResult = new BLL.Models.Client
            {
                Id        = client.Id,
                Username  = client.Username,
                Password  = client.Password,
                Salt      = client.Salt,
                Status    = client.Status,
                Sale      = client.Sale,
                Birthday  = client.Birthday,
                Email     = client.Email,
                Firstname = client.Firstname,
                Lastname  = client.Lastname,
                RoleId    = client.RoleId
            };
            return(clientResult);
        }