Example #1
0
        public async Task <IHttpActionResult> GetAllForModal()
        {
            try
            {
                var entities = await _repo.GetAllForModal();

                return(Ok(entities));
            }
            catch (Exception e)
            {
                return(InternalServerError(e));
            }
        }
        public async Task <IHttpActionResult> GetAllForModal()
        {
            try
            {
                log.Info(new MDCSet(this.ControllerContext.RouteData));
                var campo = await _propuestasRepo.GetAllForModal();

                return(Ok(campo));
            }
            catch (Exception e)
            {
                log.Error(new MDCSet(this.ControllerContext.RouteData), e);

                return(InternalServerError(e));
            }
        }