public async Task <ActionResult> Create(ProcessModel Process) { Process.EventAction = 'I'; Process.UserId = CurrentUser.UserId; Process.CompanyId = CurrentUser.CompanyId; if (CurrentUser.UserTypeName.ToLower() == "super admin") { Process.CompanyId = Process.CompanyId; } var response = await _Process.AddUpdateProcess(Process); TempData["response"] = response; return(RedirectToAction("Index")); }