Ejemplo n.º 1
0
        public async Task <ActionResult> Edit(int ProcessId)
        {
            var Pro = await _Process.GetProcessesById(ProcessId);

            if (CurrentUser.UserTypeName.ToLower() == "super admin")
            {
                Pro.IsAdmin     = true;
                Pro.CompanyList = new SelectList(await CommonModel.GetCompanies(), "Name", "Text");
            }
            return(View(Pro));
        }