Beispiel #1
0
        // GET: Rol/Details/
        public override async Task <ActionResult> Details(int?id)
        {
            log.DebugFormat("Details({0})", id.Value);

            if (!id.HasValue)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var rolSerice = Service as IRolService;

            var entity = await rolSerice.GetDetalle(id.Value);

            if (entity == null)
            {
                var msg = string.Format("El Registro de {0} con identificacion {1} no existe, o sus datos asociados no existen",
                                        "Rol", id.Value);

                return(HttpNotFound(msg));
            }

            var modelView = new FormModelView();

            modelView.ModelDto = entity as IEntityDto;

            var view     = ViewService.Get(typeof(RolDetalleDto), typeof(Form));
            var formView = view.Layout as Form;

            modelView.View = formView;


            return(View(modelView));
        }
Beispiel #2
0
        public ActionResult Results(int id)
        {
            // tmp = 656501304;
            FormModelView formModelView = new FormModelView();

            formModelView.Table_1 = _formRepository.GetAll1(id);
            formModelView.list_2  = _formRepository.GetAll2(id);
            formModelView.list_3  = _formRepository.GetAll3(id);
            return(View(formModelView));
        }
        private void btnKeywordView_Click(object sender, EventArgs e)
        {
            FormModelView view = new FormModelView();

            view.Show(this);
        }