public appmanual Edit(appmanual model) { entities.appmanual.Attach(model); entities.ObjectStateManager.ChangeObjectState(model, EntityState.Modified); this.Commit(); return model; }
public ActionResult Detail(appmanual model) { try { appmanualService.Edit(model); return RedirectToAction("Index"); } catch { return View(model); } }
public ActionResult Create(appmanual model) { try { appmanualService.Create(model); return RedirectToAction("Index"); } catch { return View(model); } }
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; }
public appmanual Create(appmanual model) { entities.appmanual.AddObject(model); this.Commit(); return model; }
/// <summary> /// Deprecated Method for adding a new object to the appmanual EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToappmanual(appmanual appmanual) { base.AddObject("appmanual", appmanual); }
/// <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; }