Example #1
0
        public async Task <bool> AddCategoryAsync(BLLCategoryDTO categoryDTO)
        {
            var organization = await Uow.Organizations.Exists(categoryDTO.OrganizationId);

            if (!organization)
            {
                return(false);
            }


            await Uow.Categories.AddAsync(CategoryMapper.FromBLL(categoryDTO));

            await Uow.SaveChangesAsync();

            return(true);
        }