/// <summary>
        /// Save a TaskType
        /// </summary>
        /// <param name="dc">DataContext</param>
        /// <param name="taskType"></param>
        /// <returns>returns the id of the saved taskType</returns>
        public int Save(DataContext dc, Domain.TaskType taskType)
        {
            dc = dc ?? Conn.GetContext();
            var dcTaskType = dc.TaskTypes.Where(t => t.TaskTypeId == taskType.ID).SingleOrDefault();
            var isNew      = false;

            if (dcTaskType == null)
            {
                dcTaskType = new DataAccess.SqlRepository.TaskType();
                isNew      = true;
            }

            dcTaskType.Name = taskType.Name;

            if (isNew)
            {
                dc.TaskTypes.InsertOnSubmit(dcTaskType);
            }
            dc.SubmitChanges();
            return(dcTaskType.TaskTypeId);
        }
        /// <summary>
        /// Save a TaskType
        /// </summary>
        /// <param name="dc">DataContext</param>
        /// <param name="taskType"></param>
        /// <returns>returns the id of the saved taskType</returns>
        public int Save(DataContext dc, Domain.TaskType taskType)
        {
            dc = dc ?? Conn.GetContext();
            var dcTaskType = dc.TaskTypes.Where(t => t.TaskTypeId == taskType.ID).SingleOrDefault();
            var isNew = false;
            if (dcTaskType == null)
            {
                dcTaskType = new DataAccess.SqlRepository.TaskType();
                isNew = true;
            }

            dcTaskType.Name = taskType.Name;

            if (isNew)
            {
                dc.TaskTypes.InsertOnSubmit(dcTaskType);
            }
            dc.SubmitChanges();
            return dcTaskType.TaskTypeId;
        }