예제 #1
0
        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));
        }