Example #1
0
        private SaveResult SaveCreate(Account oAccount)
        {
            AccountBLL ab = new AccountBLL();

            oAccount.CreateTime = DateTime.UtcNow;
            oAccount.CreateBy   = UserId;
            oAccount.Password   = PasswordHasher.HashPassword(oAccount.Password);
            return(ab.Create(oAccount, UserId, UserName));
        }
Example #2
0
        public void Test_Create()
        {
            AccountBLL bll = new AccountBLL(_unit);

            Account a = new Account
            {
                Name        = "Accout 001",
                Description = "Account 001 Description",
                //TotalAmount = 50000,
                Owner      = "2b658482-6a38-4ed3-b356-77fe9b1569f1",
                Status     = "Active",
                CreatedBy  = "2b658482-6a38-4ed3-b356-77fe9b1569f1",
                CreateDate = DateTime.Now
            };

            bll.Create(a);
        }