public async Task <ActionResult <category> > update([FromBody] category value) { repository = new categoryRepository(_context); var result = await repository.Updatecategory(value); return(Ok(result)); }
public async Task <ActionResult <IEnumerable <category> > > Get() { repository = new categoryRepository(_context); var result = await repository.getcategories(); return(Ok(result)); }
public PublicAccountWaterApplication(UnitOfWorkFactory factory, PersonalAccountRepository personalAccountRepository, categoryRepository categoryRepository, PublicAccountWaterRepository publicAccountWaterRepository, SalaryRepository salaryRepository) : base(factory) { this._personalAccountRepository = personalAccountRepository; this._categoryRepository = categoryRepository; this._publicAccountWaterRepository = publicAccountWaterRepository; this._salaryRepository = salaryRepository; }
public categoryController() { mngr = new categoryRepository(new Models.AppDbContext.Context()); }
public productController() { mngr = new productRepository(new Models.AppDbContext.Context()); bmngr = new brandRepository(new Models.AppDbContext.Context()); cmngr = new categoryRepository(new Models.AppDbContext.Context()); }
public CategoryApplication(UnitOfWorkFactory factory, categoryRepository categoryRepository) : base(factory) { this._categoryRepository = categoryRepository; }