public CustomersController(ICustomerService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice) { _service = service; _docReader = docReader; Searchfields = new[] { new CrudSearchFieldType("Name", CrudSearchFieldType.Method.Contains) }; Searchchildincludes = new[] { "CustomerSource", "CustomerStatus", "CustomerPhones" }; Getbyincludes = new[] { "CustomerSource", "CustomerStatus", "CustomerPhones", "CustomerAddresses", "CustomerAddresses.Address", "Notes", "Contacts" }; Orderby = "Name"; }
public LocationServicesController(ILocationService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice) { _service = service; _crudService = crudservice; _docReader = docReader; Searchfields = new[] { new CrudSearchFieldType("Id", CrudSearchFieldType.Method.Contains) }; Searchchildincludes = new[] { "CustomerLocation", "Good", "Contract" };; Getbyincludes = new[] { "CustomerLocation", "Good", "Contract", "Good.UnitType" }; Orderby = "Id"; }
public CustomersLocationsController(ICustomerLocationService service, IRequestDocReader docReader, ICRUDService crudService) : base(crudService) { _service = service; _crudService = crudService; _docReader = docReader; Searchfields = new[] { new CrudSearchFieldType("Name", CrudSearchFieldType.Method.Contains) }; Searchchildincludes = new[] { "Customer", "ServiceArea", "Address" }; Getbyincludes = new[] { "Customer", "ServiceArea", "Address" }; Orderby = "Name"; }
public GoodsController(IGoodService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice) { _service = service; _crudService = crudservice; _docReader = docReader; Searchfields = new[] { new CrudSearchFieldType("Name", CrudSearchFieldType.Method.Contains) }; Searchchildincludes = new[] { "ServiceDivision", "ServiceType", "UnitType" }; Getbyincludes = new[] { "ServiceDivision", "ServiceType", "UnitType" }; Orderby = "Name"; }
public ContractsController(IContractService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice) { _service = service; _crudService = crudservice; _docReader = docReader; Searchfields = new[] { new CrudSearchFieldType("Number", CrudSearchFieldType.Method.Contains) }; Searchchildincludes = new[] { "Customer", "ContractStatus", "ServiceDivision", "User" }; Getbyincludes = new[] { "Customer", "ContractStatus", "ServiceDivision", "ServiceAreas", "User" }; Orderby = "Number"; }
public UsersController(IUserService userService, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice) { _userService = userService; _docReader = docReader; Searchfields = new[] { new CrudSearchFieldType("FirstName", CrudSearchFieldType.Method.Contains), new CrudSearchFieldType("LastName", CrudSearchFieldType.Method.Contains), new CrudSearchFieldType("Email", CrudSearchFieldType.Method.Contains) }; Searchchildincludes = new[] { "Address" }; Getbyincludes = new[] { "UserPhones", "Address", "Image", "AuthUser" }; Orderby = "LastName"; }
public AuthUsersController(IAuthService authService, IRoleManager roleManager, IRequestDocReader docReader, IUserService userService) : base(authService, roleManager) { _userService = userService; _docReader = docReader; }