public Client GetClientByUsername(string username) { DAL.Entity.Client client = _dal.GetClientByUsername(username); 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); }