Exemplo n.º 1
0
        public ActionResult EditMaintenanceCompany(string key)
        {
            var partyRepo = new PartyRepository();
            MaintenanceCompany maintenanceCompany = partyRepo.GetMaintenanceCompanyById(key.ToLong(0));

            ViewBag.Input = Convert.ToBase64String(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(maintenanceCompany)));

            ViewBag.Id       = key.ToLong(0);
            ViewBag.Title    = "Bearbeiten Wartungsfirma";
            ViewBag.TypeName = "MaintenanceCompany";
            if (Request.IsAjaxRequest())
            {
                ViewBag.IsPopup = true;
                return(PartialView("MaintenanceCompany"));
            }
            else
            {
                ViewBag.IsPopup = false;
                return(View("MaintenanceCompany"));
            }
        }