示例#1
0
        Client IService1.GetClientByUsername(string user)
        {
            var client = _bll.GetClientByUsername(user);

            return(new 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
            });
        }