public JsonResult CreateGroup(string name, string copyId, string defTzId, List<int> objectIds, List<int> selectedObjectIds) { int? copyIdValue = null; if (copyId != string.Empty) copyIdValue = int.Parse(copyId); int? defTzIdValue = null; if (defTzId != string.Empty) defTzIdValue = int.Parse(defTzId); return Json(_userPermissionGroupService.CreateUserPermissionGroup(name, copyIdValue, defTzIdValue, objectIds, selectedObjectIds), JsonRequestBehavior.AllowGet); }