Client IService1.GetClientByUP(string user, string password) { var client = _bll.GetClientByUP(user, password); 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 }); }