Refactor Category Service ...
- Add all HardCoded Strings in Constants ... - Apply Resolve Constant Replacement Side Affects ... - add Support for Service Main Provider ...
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using xCategoryService.Constants;
|
||||
using xCategoryService.Interfaces.Entities;
|
||||
using xCategoryService.Models.Entities;
|
||||
using xDataService.Configuration;
|
||||
@@ -14,12 +15,12 @@ namespace xCategoryService.Providers.GraphQL
|
||||
|
||||
public override string GetInQueryCollectionName()
|
||||
{
|
||||
return "categories";
|
||||
return XCategoryServiceConstants.XCategoryCollectionName;
|
||||
}
|
||||
|
||||
public override string GetInQuerySingleName()
|
||||
{
|
||||
return "category";
|
||||
return XCategoryServiceConstants.XCategorySingleName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using xCategoryService.Constants;
|
||||
using xCategoryService.Interfaces.Entities;
|
||||
using xCategoryService.Models.Entities;
|
||||
using xDataService.Configuration;
|
||||
@@ -14,12 +15,12 @@ namespace xCategoryService.Providers.GraphQL
|
||||
|
||||
public override string GetInQueryCollectionName()
|
||||
{
|
||||
return "subCategories";
|
||||
return XCategoryServiceConstants.XSubCategoryCollectionName;
|
||||
}
|
||||
|
||||
public override string GetInQuerySingleName()
|
||||
{
|
||||
return "subCategory";
|
||||
return XCategoryServiceConstants.XSubCategorySingleName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user