public GerenciamentoInstituicao( UserManager<UsuarioADE> userManager, ApplicationDbContext context ) : base(unitOfWork = new UnitOfWork(context), userManager) { _servicoCurso = new ServicoCurso(ref unitOfWork); _servicoAlteracoes = new ServicoAlteracaoEntidadesSistema(ref unitOfWork); _servicoInstituicao = new ServicoInstituicao(ref unitOfWork); }
public HttpResponseMessage Response(object result, IServicoBase servicoBase) { _servicoBase = servicoBase; if (servicoBase.Notifications.Any()) { return(Request.CreateResponse(HttpStatusCode.OK, servicoBase.Notifications)); } try { return(Request.CreateResponse(HttpStatusCode.OK, result)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, $"Houve um problema interno com o servidor. Entre em contato com o Administrador do sistema caso o problema persista. Erro interno: {ex.Message}")); } }
public async Task <HttpResponseMessage> ResponseAsync(object result, IServicoBase serviceBase) { _servicoBase = serviceBase; if (!serviceBase.Notifications.Any()) { try { _unitOfWork.Commit(); return(Request.CreateResponse(HttpStatusCode.OK, result)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.Conflict, $"Erro interno: {ex.Message}")); } } else { return(Request.CreateResponse(HttpStatusCode.PreconditionFailed, serviceBase.Notifications)); } }
public ApServicoBase(IMapper iMapper, IServicoBase <TEntidade> servico) : base() { _iMapper = iMapper; _servico = servico; }
public ServicoAplicacaoLeitura(IMapper mapper, IServicoBase <TEntidadeId, TEntidade> servico) { _mapper = mapper; _servico = servico; }
public AppServicoBase(IServicoBase <TClass, TEnum> serviceBase) { _ServiceBase = serviceBase; }
public ServicoAppBase(IMapper iMapper, IServicoBase <TEntidade> servico) : base() { this.iMapper = iMapper; this.servico = servico; }
public ServicoAplicacaoBase(IServicoBase <TEntity> servico) { this.servico = servico; }
public AppServicoBase(IServicoBase <T> servico, ITransacao transacao) { _servico = servico; _transacao = transacao; }
public ServicoAppBase(IMapper IMapper, IServicoBase <TEntidade> servico) { _servico = servico; _iMapper = IMapper; }
public ControladorBase(IServicoBase <T> servico) { Servico = servico; }
public AplicacaoBase(IMapper mapper, IServicoBase <TDocument> servicoBase) { _mapper = mapper; _servicoBase = servicoBase; }
public ServicoAplicacaoBase(IMapper mapper, IServicoBase <TEntidadeId, TEntidade> servico) : base(mapper, servico) { }
/// <summary> /// Construtor /// </summary> /// <param name="servicoBase">Serviço Base</param> /// <param name="unidadeDeTrabalho">Unidade de Trabalho</param> public ServicoDeAplicacaoBase(IServicoBase <TEntity> servicoBase, IUnidadeDeTrabalho unidadeDeTrabalho) { _servicoBase = servicoBase; _unidadeDeTrabalho = unidadeDeTrabalho; }
public AplicacaoBase(IServicoBase <TEntidade> servico) { this.servico = servico; }
public AplicacaoServicoBase(IServicoBase <TEntity> servicoBase) { _servicoBase = servicoBase; }
public AppServicoBase(IServicoBase <TEntity> servicoBase) { _servicoBase = servicoBase; }
public AppServicoBase(IServicoBase <T> servico) => _servico = servico;