コード例 #1
0
 public ParametricoController(IClientesService clientesService, IFicherosService ficherosService,
                              IPedidosService pedidosService, IPagosService pagosService, IHaberesService haberesService)
 {
     _clientesService = clientesService;
     _ficherosService = ficherosService;
     _pedidosService  = pedidosService;
     _pagosService    = pagosService;
     _haberesService  = haberesService;
 }
コード例 #2
0
 public ClientesController(IClientesService ClientesService)
 {
     _ClientesService = ClientesService;
 }
コード例 #3
0
ファイル: ClientesController.cs プロジェクト: fjota/2DAWA
 public ClientesController(IClientesService clientesService)
 {
     this.clientesService = clientesService;
 }
コード例 #4
0
 public ClientesController(IClientesService clientesService)
 {
     _clientesService = clientesService;
 }
コード例 #5
0
 public ClientesController(IClientesService clientServ, ICuentasService accountServ)
 {
     clientesService = clientServ;
     cuentasService  = accountServ;
 }
コード例 #6
0
 public PedidosController(IPedidosService pedidosService, IArticulosService articulosService, IClientesService clientesService) // IoC en StartUp.cs
 {
     _pedidosService   = pedidosService;
     _articulosService = articulosService;
     _clientesService  = clientesService;
 }
コード例 #7
0
        public ClientesModule(IClientesService clientesService) : base("/clientes")
        {
            Get("/", args => { return(clientesService.GetClientes()); });

            Get("/{id}", args =>
            {
                Cliente cliente = clientesService.GetCliente(args.id);
                if (cliente != null)
                {
                    return(cliente);
                }
                else
                {
                    return(new Response {
                        StatusCode = HttpStatusCode.NotFound
                    });
                }
            });

            Post("/", args =>
            {
                var cliente = this.Bind <Cliente>();
                if (cliente.Name == null || cliente.Surname == null || cliente.Address == null)
                {
                    return(new Response {
                        StatusCode = HttpStatusCode.Forbidden
                    });
                }
                else
                {
                    return(clientesService.CreateCliente(cliente));
                }
            });

            Put("/{id}", args =>
            {
                var cliente = this.Bind <Cliente>();
                cliente.Id  = args.id;
                if (cliente.Name == null || cliente.Surname == null || cliente.Address == null)
                {
                    return(new Response {
                        StatusCode = HttpStatusCode.Forbidden
                    });
                }
                else
                {
                    Cliente edited = clientesService.EditCliente(cliente);
                    if (edited == null)
                    {
                        return(new Response {
                            StatusCode = HttpStatusCode.NotFound
                        });
                    }
                    else
                    {
                        return(edited);
                    }
                }
            });

            Delete("/{id}", args =>
            {
                if (clientesService.DeleteCliente(args.id))
                {
                    return(204);
                }
                else
                {
                    return(new Response {
                        StatusCode = HttpStatusCode.NotFound
                    });
                }
            });
        }
コード例 #8
0
 public ClientesAppService(IClientesService serviceBase) : base(serviceBase)
 {
     _serviceBase = serviceBase;
 }
コード例 #9
0
 public ClientesApiController(
     ClientesService clientesService)
 {
     this.clientesService = clientesService;
 }
コード例 #10
0
 public ListagensPresenter(IListagensView listagensView)
 {
     _listagensView   = listagensView;
     _clientesService = new ClientesService();
 }
コード例 #11
0
 public ClientesAppService(IClientesService clientesService) : base(clientesService)
 {
     _clientesService = clientesService;
 }
コード例 #12
0
 public ClientesAppService(IClientesService serviceBase, IMapper mapper)
 {
     _serviceBase = serviceBase;
     _mapper      = mapper;
 }
コード例 #13
0
 public CadastrosPresenter(ICadastrosView cadastroView)
 {
     _cadastroView    = cadastroView;
     _clientesService = new ClientesService();
 }
コード例 #14
0
ファイル: ClientesController.cs プロジェクト: jmlansky/pediMe
 public ClientesController(IClientesService service)
 {
     this.service = service;
 }
コード例 #15
0
 public ClienteController(ILogger <ClienteController> logger, IClientesService clientesService)
 {
     _logger          = logger;
     _clientesService = clientesService;
 }
コード例 #16
0
 //**constructor para inyectar
 public ClientesController(IClientesService clientesOps)
 {
     this.clientesOps = clientesOps;
 }
コード例 #17
0
 public PlanosService(IPlanosRepository plano, IClientesService clientesService)
 {
     _plano           = plano;
     _clientesService = clientesService;
 }
コード例 #18
0
 public ClientesController(ClientesService clientesService, ProdutosService produtosService, IMapper mapper)
 {
     _clientesService = clientesService;
     _produtosService = produtosService;
     _mapper          = mapper;
 }
コード例 #19
0
ファイル: ProdutosService.cs プロジェクト: rogall/RogerMagalu
 public ProdutosService(ClientesService service)
 {
     _clientesService = service;
 }
コード例 #20
0
 public ClientesController(IClientesService clientesService)
 {
     _clientes = clientesService;
 }
コード例 #21
0
 public wishListController(IClientesService clienteService)
 {
     _clientesService = clienteService;
 }