/// <summary> /// Create a modal window with an Empty form /// </summary> /// <returns></returns> public ActionResult New() { var cliEnd = new Ecommerce_Cliente_Endereco(); ViewBag.States = GetStateSelectedListItem(new EnderecoService().GetStates()); return PartialView("New", cliEnd); }
/// <summary> /// Create a new Ecommerce_Cliente_Endereco object. /// </summary> /// <param name="idEndereco">Initial value of the IdEndereco property.</param> /// <param name="idCliente">Initial value of the IdCliente property.</param> /// <param name="logradouro">Initial value of the Logradouro property.</param> /// <param name="isEnderecoEntrega">Initial value of the IsEnderecoEntrega property.</param> public static Ecommerce_Cliente_Endereco CreateEcommerce_Cliente_Endereco(global::System.Int32 idEndereco, global::System.Int32 idCliente, global::System.String logradouro, global::System.Boolean isEnderecoEntrega) { Ecommerce_Cliente_Endereco ecommerce_Cliente_Endereco = new Ecommerce_Cliente_Endereco(); ecommerce_Cliente_Endereco.IdEndereco = idEndereco; ecommerce_Cliente_Endereco.IdCliente = idCliente; ecommerce_Cliente_Endereco.Logradouro = logradouro; ecommerce_Cliente_Endereco.IsEnderecoEntrega = isEnderecoEntrega; return ecommerce_Cliente_Endereco; }
/// <summary> /// Deprecated Method for adding a new object to the Ecommerce_Cliente_Endereco EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEcommerce_Cliente_Endereco(Ecommerce_Cliente_Endereco ecommerce_Cliente_Endereco) { base.AddObject("Ecommerce_Cliente_Endereco", ecommerce_Cliente_Endereco); }
public JsonResult Edit(Ecommerce_Cliente_Endereco model) { new EnderecoService().UpdateObject(model); return Json(new JsonRequestResult { ResultType = JsonRequestResultType.Success, Message = Resources.Resource.Msg_Geral_CadastroAtualizado, ReturnUrl = Url.Content("~/Dashboard/Index/") }, JsonRequestBehavior.AllowGet); }
public ActionResult New(Ecommerce_Cliente_Endereco model) { var mod = model; //mod.IdCliente = 1; mod.IdCliente = FormsAuthenticationUtil.UserAuthenticated.IdCliente.Value; new EnderecoService().InsertObject(mod); return Json(new JsonRequestResult { ResultType = JsonRequestResultType.Success, Message = Resources.Resource.Msg_Geral_CadastroRealizado, ReturnUrl = Url.Content("~/Dashboard/Index/") }); }