public ActionResult Create(string id) { if (!string.IsNullOrWhiteSpace(id)) { using (SysDepartmentBLL bll = new SysDepartmentBLL()) { SysDepartment entityId = bll.GetById(id); if (entityId != null) { SysDocument entity = new SysDocument(); entity.SysDepartmentId = id + '&' + entityId.Name; return(View(entity)); } } } return(View()); }