public GenericResponseDTO GetAllTypesRisk() { try { using (var container = new ContainerFactory()) { ITipoRiesgoService riskService = container.GetContainer().Resolve <ITipoRiesgoService>(); return(riskService.GetAll()); } } catch (Exception) { throw; } }
private void LoadCombos(int?tipoCubrimiento, int?tipoRiesgo) { ViewBag.TipoCubrimientoId = new SelectList(_tipoCubrimientoService.GetAll(), "Id", "NombreMostrar", tipoCubrimiento); ViewBag.TipoRiesgoId = new SelectList(_tipoRiesgoService.GetAll(), "Id", "Nombre", tipoRiesgo); }
// GET: TiposRiesgo public ActionResult Index() { return(View(_tipoRiesgoService.GetAll())); }