public JsonResult Editar(Ecommerce_Aplicacao model, List<Ecommerce_Aplicacao_Idioma> Ecommerce_Aplicacao_Idiomas)
        {
            foreach (var item in Ecommerce_Aplicacao_Idiomas) { model.Ecommerce_Aplicacao_Idioma.Add(item); }

            new AplicacaoService().UpdateObject(model);

            return Json(new JsonRequestResult { ResultType = JsonRequestResultType.Success, Message = Constants._msgUpdateSuccess, ReturnUrl = Url.Content("~/Admin/Aplicacao/") }, JsonRequestBehavior.AllowGet);
        }
        public ActionResult Novo()
        {
            ViewBag.Parents = GetapplicationSelectListItem(new AplicacaoService().GetAll(), null);
            ViewBag.Idiomas = new IdiomaService().GetAll();

            var conteudo = new Ecommerce_Aplicacao() { IsAtivo = true };

            return View(conteudo);
        }
        public ActionResult Novo(Ecommerce_Aplicacao model, List<Ecommerce_Aplicacao_Idioma> Ecommerce_Aplicacao_Idiomas)
        {
            foreach (var item in Ecommerce_Aplicacao_Idiomas) { model.Ecommerce_Aplicacao_Idioma.Add(item); }

            model.DataInclusao = DateTime.Now;

            new AplicacaoService().InsertObject(model);

            return Json(new JsonRequestResult { ResultType = JsonRequestResultType.Success, Message = Constants._msgCreateSuccess, ReturnUrl = Url.Content("~/Admin/Aplicacao/") });
        }
 /// <summary>
 /// Create a new Ecommerce_Aplicacao object.
 /// </summary>
 /// <param name="idAplicacao">Initial value of the IdAplicacao 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_Aplicacao CreateEcommerce_Aplicacao(global::System.Int32 idAplicacao, global::System.String nome, global::System.DateTime dataInclusao, global::System.Boolean isAtivo)
 {
     Ecommerce_Aplicacao ecommerce_Aplicacao = new Ecommerce_Aplicacao();
     ecommerce_Aplicacao.IdAplicacao = idAplicacao;
     ecommerce_Aplicacao.Nome = nome;
     ecommerce_Aplicacao.DataInclusao = dataInclusao;
     ecommerce_Aplicacao.IsAtivo = isAtivo;
     return ecommerce_Aplicacao;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Ecommerce_Aplicacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEcommerce_Aplicacao(Ecommerce_Aplicacao ecommerce_Aplicacao)
 {
     base.AddObject("Ecommerce_Aplicacao", ecommerce_Aplicacao);
 }