コード例 #1
0
 public appmanual Edit(appmanual model)
 {
     entities.appmanual.Attach(model);
       entities.ObjectStateManager.ChangeObjectState(model, EntityState.Modified);
       this.Commit();
       return model;
 }
コード例 #2
0
        public ActionResult Detail(appmanual model)
        {
            try
              {

              appmanualService.Edit(model);
              return RedirectToAction("Index");

              }
              catch
              {
            return View(model);
              }
        }
コード例 #3
0
        public ActionResult Create(appmanual model)
        {
            try
              {

              appmanualService.Create(model);
              return RedirectToAction("Index");

              }
              catch
              {
            return View(model);
              }
        }
コード例 #4
0
        public appmanual GetappManualById(string srNameControles)
        {
            //appopciones opciones = entities.appopciones.Single(e => e.Nombre == srNameControles);

              appopciones opciones = (from opcion in entities.appopciones
                              where opcion.Nombre == srNameControles
                              select opcion).FirstOrDefault();

              appmanual miTipoAccion = new appmanual();
              if (opciones != null)
              {
            miTipoAccion = (from c in entities.appmanual
                        where c.Id_opcion == opciones.Id_opcion
                        select c).FirstOrDefault();

            if (miTipoAccion == null)
              return null;
              }
              return miTipoAccion;
        }
コード例 #5
0
 public appmanual Create(appmanual model)
 {
     entities.appmanual.AddObject(model);
       this.Commit();
       return model;
 }
コード例 #6
0
 /// <summary>
 /// Deprecated Method for adding a new object to the appmanual EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToappmanual(appmanual appmanual)
 {
     base.AddObject("appmanual", appmanual);
 }
コード例 #7
0
 /// <summary>
 /// Create a new appmanual object.
 /// </summary>
 /// <param name="id_appmanual">Initial value of the Id_appmanual property.</param>
 /// <param name="id_opcion">Initial value of the Id_opcion property.</param>
 public static appmanual Createappmanual(global::System.Int32 id_appmanual, global::System.Int32 id_opcion)
 {
     appmanual appmanual = new appmanual();
     appmanual.Id_appmanual = id_appmanual;
     appmanual.Id_opcion = id_opcion;
     return appmanual;
 }