public async Task <int> Handle(CreateAccountCategoryCommand request, CancellationToken cancellationToken) { AccountCatagory category = new AccountCatagory() { Catagory = request.CategoryName, AccountTypeId = request.AccountType, DateAdded = DateTime.Now, DateUpdated = DateTime.Now, OverflowAccount = request.OverFlowAccount, }; _database.AccountCatagory.Add(category); await _database.SaveAsync(); return(category.Id); }
public AccountCategoriesShould() { _category = new AccountCatagory(); }
public static AccountCategoryView Create(AccountCatagory catagory) { return(Projection.Compile().Invoke(catagory)); }