예제 #1
0
        public Client GetClientById(int id)
        {
            DAL.Entity.Client client       = _dal.GetClientById(id);
            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);
        }