public FrmCadastroCliente(IClienteApplication clienteApplication, IClienteVeiculoApplication clienteVeiculoApplication, ICorreriosApplication correriosApplication) { _clienteApplication = clienteApplication; _clienteVeiculoApplication = clienteVeiculoApplication; _correriosApplication = correriosApplication; InitializeComponent(); }
public void Put( int id, [FromServices] IClienteApplication clienteApplication, [FromBody] Cliente clienteModel) { clienteApplication.Update(clienteModel); }
public FrmConsultaClienteVeiculo(IClienteApplication clienteApplication, IClienteVeiculoApplication clienteVeiculoApplication, IVeiculoApplication veiculoApplication) { _clienteApplication = clienteApplication; _clienteVeiculoApplication = clienteVeiculoApplication; _veiculoApplication = veiculoApplication; InitializeComponent(); }
public FrmCliente(IClienteApplication <SRMContext> application) { _clienteApplication = application; InitializeComponent(); pesquisar(); }
public ClientesController(ILogger <ClientesController> logger, IConfiguration config, IClienteApplication clientService) { _logger = logger; _config = config; _clienteApplication = clientService; }
public ClientesController( IClienteApplication clienteApplication, INotificador notificador, IMapper mapper) : base(notificador) { _clienteApplication = clienteApplication; _mapper = mapper; }
public IEnumerable <Cliente> GetByName( string nome, int posicaoInicioPagina, int linhasPagina, [FromServices] IClienteApplication clienteApplication) { return(clienteApplication.GetByName(nome).ToList().Skip(posicaoInicioPagina).Take(linhasPagina)); }
public ClienteController(IMapper mapper, IClienteApplication clienteApplication, IClienteReadOnlyRepository clienteReadOnlyRepository) { _mapper = mapper; _clienteApplication = clienteApplication; _clienteReadOnlyRepository = clienteReadOnlyRepository; }
public FrmConsultaOrcamento(IOrcamentoApplication orcamentoApplication, IClienteApplication clienteApplication, IClienteVeiculoApplication clienteVeiculoApplication, IVeiculoApplication veiculoApplication) { _orcamentoApplication = orcamentoApplication; _clienteApplication = clienteApplication; _clienteVeiculoApplication = clienteVeiculoApplication; _veiculoApplication = veiculoApplication; InitializeComponent(); }
public FrmGerarOrcamento(IClienteApplication clienteApplication, IOrcamentoApplication orcamentoApplication, IClienteVeiculoApplication clienteVeiculoApplication, IVeiculoApplication veiculoApplication, IMaodeObraApplication maodeObraApplication, IPecaApplication pecaApplication) { _clienteApplication = clienteApplication; _orcamentoApplication = orcamentoApplication; _clienteVeiculoApplication = clienteVeiculoApplication; _veiculoApplication = veiculoApplication; _maoDeObraApplication = maodeObraApplication; _pecaApplication = pecaApplication; InitializeComponent(); }
public FrmGerarServico(IClienteApplication clienteApplication, IServicoApplication servicoApplication, IClienteVeiculoApplication clienteVeiculoApplication, IVeiculoApplication veiculoApplication, IMaodeObraApplication maodeObraApplication, IPecaApplication pecaApplication) { _clienteApplication = clienteApplication; _servicoApplication = servicoApplication; _clienteVeiculoApplication = clienteVeiculoApplication; _veiculoApplication = veiculoApplication; _maoDeObraApplication = maodeObraApplication; _pecaApplication = pecaApplication; InitializeComponent(); }
public ActionResult <Cliente> Post( [FromServices] IClienteApplication clienteApplication, [FromBody] Cliente clienteModel) { bool isValidParceiroCasado = clienteModel.IsValidParceiroCasado(clienteModel); if (ModelState.IsValid && isValidParceiroCasado) { clienteApplication.Add(clienteModel); return(clienteModel); } else { if (isValidParceiroCasado) { return(BadRequest(ModelState)); } else { string msgBadRequest = ""; if (!string.IsNullOrEmpty(clienteModel.NomeParceiro) && (clienteModel.DataNascimentoParceiro != null && clienteModel.DataNascimentoParceiro != DateTime.MinValue)) { msgBadRequest = "O Nome e a Data de Nascimento do Parceiro não podem ser informados, pois o cliente não é casado."; } else { msgBadRequest = (!string.IsNullOrEmpty(clienteModel.NomeParceiro)) ? "O Nome do Parceiro não pode ser informado, pois o cliente não é casado." : "A Data de Nascimento do Parceiro não pode ser informada, pois o cliente não é casado."; } return(BadRequest(msgBadRequest)); } } }
public ClientController(IClienteApplication application) { _application = application; }
public frmConsultaCliente(IClienteApplication clienteApplication) { _clienteApplication = clienteApplication; InitializeComponent(); }
public void Delete( int id, [FromServices] IClienteApplication clienteApplication) { clienteApplication.RemoveById(id); }
public ClienteController(IClienteApplication cliente) { _cliente = cliente; }
public Cliente Get( int id, [FromServices] IClienteApplication clienteApplication) { return(clienteApplication.GetById(id)); }
public ClienteController(IClienteApplication clienteApplication, IOptions <AppSettings> appSettings) { _clienteApplication = clienteApplication; _appSettings = appSettings.Value; }
public PedidoController(IPedidoApplication application, IClienteApplication clienteApplication, IProdutoApplication produtoApplication) { Application = application; ClienteApplication = clienteApplication; ProdutoApplication = produtoApplication; }
/// <summary> /// /// </summary> /// <param name="clienteApplication"></param> public ClienteController(IClienteApplication clienteApplication) { _clienteApplication = clienteApplication; }
public IEnumerable <Cliente> Get([FromServices] IClienteApplication clienteApplication) { return(clienteApplication.GetAll()); }
public ClienteService(IClienteApplication clienteApplication) { _clienteApplication = clienteApplication; }