public object Post([FromServices] ISalaAgendamentoAppService salaAgendamentoAppService, [FromBody] SalaAgendamentoViewModel salaAgendamentoView) { var result = salaAgendamentoAppService.Adicionar(salaAgendamentoView); return(result); }
public object Remover([FromServices] ISalaAgendamentoAppService salaAgendamentoAppService, [FromBody] SalaAgendamentoViewModel salaAgendamentoView) { salaAgendamentoAppService.Excluir(salaAgendamentoView); return(new { errors = false, message = "Cadastro efetuado com sucesso." }); }
public ActionResult <IEnumerable <SalaAgendamentoViewModel> > Get([FromServices] ISalaAgendamentoAppService salaAgendamentoAppService, Guid salaGuid, DateTime data) { return(salaAgendamentoAppService.ObterPorData(salaGuid, data).ToList()); }