public static ICategoryService GetCategoryService(ICategoryRepository repository, ICategoryValidation validation) { return(new CategoryService(repository, validation)); }
public CategoryService(ICategoryRepository categoryRepository, ICategoryValidation categoryValidation) { this.categoryRepository = categoryRepository; this.categoryValidation = categoryValidation; }
public static ICategoryService GetCategoryService(ICategoryRepository repository, ICategoryValidation validation) { return new CategoryService(repository, validation); }