public UserModel Login(LoginModel loginModel) { accountBusinessRules.LoginCheck(loginModel, unitOfWork.Account); var account = unitOfWork.Account.GetById(a => a.Username == loginModel.Username, "Company, Organisation, Role"); return(accountBuilder.BuildToUserModel(account)); }