/// <summary>
        /// Renders a dialog where the user can create or edit a custom table type.
        /// </summary>
        /// <param name="id">The table id if in edit mode.</param>
        /// <returns>A partial view that will be rendered.</returns>
        public PartialViewResult CustomSpeciesObservationTableDialog(int?id)
        {
            var viewManager = new SpeciesObservationFieldDescriptionViewManager(GetCurrentUser(), SessionHandler.MySettings);
            SpeciesObservationTableTypeViewModel tableType = null;

            if (id.HasValue)
            {
                tableType = viewManager.GetUserDefinedTable(id.Value);
            }

            return(PartialView(tableType));
        }