Example #1
0
        public async Task DeleteAsync(FashionCategory parameters)
        {
            var FashionCategory = Uow.Repository <FashionCategory>().FindByKey(parameters.FashionCategoryId);
            await Uow.RegisterDeletedAsync(FashionCategory);

            await Uow.CommitAsync();
        }
Example #2
0
 public HashSet <string> DeleteValidation(FashionCategory parameters)
 {
     return(ValidationMessages);
 }
Example #3
0
        public async Task UpdateAsync(FashionCategory entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
Example #4
0
 public HashSet <string> UpdateValidation(FashionCategory entity)
 {
     return(ValidationMessages);
 }
Example #5
0
        public async Task AddAsync(FashionCategory entity)
        {
            await Uow.RegisterNewAsync(entity);

            await Uow.CommitAsync();
        }
Example #6
0
 public async Task <object> GetBy(FashionCategory parameters)
 {
     return(await Uow.Repository <FashionCategory>().FindByAsync(t => t.FashionCategoryId == parameters.FashionCategoryId));
 }
Example #7
0
 public async Task <object> GetAsync(FashionCategory parameters)
 {
     return(await Uow.Repository <FashionCategory>().AllAsync());
 }