Ejemplo n.º 1
0
        public ActionResult <TView> Default()
        {
            V_0 = UnitOfWorkHelper <TDbContext> .InitContext();

            try
            {
                V_1 = V_0.get_Database().BeginTransaction();
                V_2 = ReflectionHelper.InitModel <TView>();
                ReflectionHelper.SetPropertyValue <TView>(V_2, new JProperty("Specificulture", this._lang));
                ReflectionHelper.SetPropertyValue <TView>(V_2, new JProperty("Status", MixService.GetConfig <string>("DefaultContentStatus")));
                V_2.ExpandView(V_0, V_1);
                V_3 = ActionResult <TView> .op_Implicit(this.Ok(V_2));
            }
            finally
            {
                if (V_0 != null)
                {
                    ((IDisposable)(object)V_0).Dispose();
                }
            }
            return(V_3);
        }