Esempio n. 1
0
        public TUR_TurmaHorarioDTO Get(int trn_id, int trh_id, int thr_id, long tud_id)
        {
            try
            {
                TUR_TurmaHorarioDTO dto = TUR_TurmaHorarioBO.SelecionarTurmaHorarioPorId(trn_id, trh_id, thr_id, tud_id);

                if (dto != null)
                {
                    return(dto);
                }
            }
            catch (Exception e)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)
                {
                    Content = new StringContent("Erro: " + e.Message)
                });
            }

            throw new HttpResponseException(HttpStatusCode.NotFound);
        }