public JsonResult Editar(Ecommerce_TipoPele model, List<Ecommerce_TipoPele_Idioma> Ecommerce_TipoPele_Idiomas) { foreach (var item in Ecommerce_TipoPele_Idiomas) { model.Ecommerce_TipoPele_Idioma.Add(item); } new TipoPeleService().UpdateObject(model); return Json(new JsonRequestResult { ResultType = JsonRequestResultType.Success, Message = Constants._msgUpdateSuccess, ReturnUrl = Url.Content("~/Admin/TipoPele/") }, JsonRequestBehavior.AllowGet); }
public ActionResult Novo() { ViewBag.Parents = GetSkinTypeSelectListItem(new TipoPeleService().GetAll(), null); ViewBag.Idiomas = new IdiomaService().GetAll(); var tipoPele = new Ecommerce_TipoPele() { IsAtivo = true }; return View(tipoPele); }
public ActionResult Novo(Ecommerce_TipoPele model, List<Ecommerce_TipoPele_Idioma> Ecommerce_TipoPele_Idiomas) { foreach (var item in Ecommerce_TipoPele_Idiomas) { model.Ecommerce_TipoPele_Idioma.Add(item); } model.DataInclusao = DateTime.Now; new TipoPeleService().InsertObject(model); return Json(new JsonRequestResult { ResultType = JsonRequestResultType.Success, Message = Constants._msgCreateSuccess, ReturnUrl = Url.Content("~/Admin/TipoPele/") }); }
/// <summary> /// Deprecated Method for adding a new object to the Ecommerce_TipoPele EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEcommerce_TipoPele(Ecommerce_TipoPele ecommerce_TipoPele) { base.AddObject("Ecommerce_TipoPele", ecommerce_TipoPele); }
/// <summary> /// Create a new Ecommerce_TipoPele object. /// </summary> /// <param name="idTipoPele">Initial value of the IdTipoPele property.</param> /// <param name="nome">Initial value of the Nome property.</param> /// <param name="dataInclusao">Initial value of the DataInclusao property.</param> /// <param name="isAtivo">Initial value of the IsAtivo property.</param> public static Ecommerce_TipoPele CreateEcommerce_TipoPele(global::System.Int32 idTipoPele, global::System.String nome, global::System.DateTime dataInclusao, global::System.Boolean isAtivo) { Ecommerce_TipoPele ecommerce_TipoPele = new Ecommerce_TipoPele(); ecommerce_TipoPele.IdTipoPele = idTipoPele; ecommerce_TipoPele.Nome = nome; ecommerce_TipoPele.DataInclusao = dataInclusao; ecommerce_TipoPele.IsAtivo = isAtivo; return ecommerce_TipoPele; }