add Category and SubCategory Controller ...
This commit is contained in:
@@ -0,0 +1,35 @@
|
|||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using xCategoryService.Controllers;
|
||||||
|
using xCategoryService.Interfaces;
|
||||||
|
using xCategoryService.Models.Entities;
|
||||||
|
using xCommons.Configurations;
|
||||||
|
using xCommons.Providers;
|
||||||
|
using xIdentityService.Interfaces;
|
||||||
|
|
||||||
|
namespace xServices.Controllers
|
||||||
|
{
|
||||||
|
public class XCategoryProviderController : XCategoryProviderControllerBase, IXCategoryProviderController
|
||||||
|
{
|
||||||
|
public XCategoryProviderController(
|
||||||
|
ILogger<XCategoryProviderController> logger,
|
||||||
|
XAppConfiguration appConfiguration,
|
||||||
|
IXIdentityProvider identityProvider,
|
||||||
|
XValidationProvider validationProvider,
|
||||||
|
IXCategoryProvider provider,
|
||||||
|
Func<IQueryable<XCategory>, IOrderedQueryable<XCategory>> defaultOrderBuilder = null,
|
||||||
|
Func<IQueryable<XCategory>, IIncludableQueryable<XCategory, object>> defaultIncludeBuilder = null
|
||||||
|
) : base(
|
||||||
|
logger,
|
||||||
|
appConfiguration,
|
||||||
|
identityProvider,
|
||||||
|
validationProvider,
|
||||||
|
provider,
|
||||||
|
defaultOrderBuilder,
|
||||||
|
defaultIncludeBuilder
|
||||||
|
)
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,7 +11,7 @@ using xIdentityService.Interfaces;
|
|||||||
|
|
||||||
namespace xServices.Controllers
|
namespace xServices.Controllers
|
||||||
{
|
{
|
||||||
public class XFileProviderController : XFileProviderControllerBase
|
public class XFileProviderController : XFileProviderControllerBase, IXFileProviderController
|
||||||
{
|
{
|
||||||
public XFileProviderController(
|
public XFileProviderController(
|
||||||
ILogger<XFileProviderController> logger,
|
ILogger<XFileProviderController> logger,
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using xCategoryService.Controllers;
|
||||||
|
using xCategoryService.Interfaces;
|
||||||
|
using xCategoryService.Models.Entities;
|
||||||
|
using xCommons.Configurations;
|
||||||
|
using xCommons.Providers;
|
||||||
|
using xIdentityService.Interfaces;
|
||||||
|
|
||||||
|
namespace xServices.Controllers
|
||||||
|
{
|
||||||
|
public class XSubCategoryProviderController : XSubCategoryProviderControllerBase, IXSubCategoryProviderController
|
||||||
|
{
|
||||||
|
public XSubCategoryProviderController(
|
||||||
|
ILogger<XSubCategoryProviderController> logger,
|
||||||
|
XAppConfiguration appConfiguration,
|
||||||
|
IXIdentityProvider identityProvider,
|
||||||
|
XValidationProvider validationProvider,
|
||||||
|
IXSubCategoryProvider provider,
|
||||||
|
Func<IQueryable<XSubCategory>, IOrderedQueryable<XSubCategory>> defaultOrderBuilder = null,
|
||||||
|
Func<IQueryable<XSubCategory>, IIncludableQueryable<XSubCategory, object>> defaultIncludeBuilder = null
|
||||||
|
) : base(
|
||||||
|
logger,
|
||||||
|
appConfiguration,
|
||||||
|
identityProvider,
|
||||||
|
validationProvider,
|
||||||
|
provider,
|
||||||
|
defaultOrderBuilder,
|
||||||
|
defaultIncludeBuilder
|
||||||
|
)
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user