public void DeleteIssueType(IssueTypeItem issueTypeItem)
        {
            var entity = new IssueType
            {
                IssueTypeID = issueTypeItem.IssueTypeID
            };

            db.IssueTypes.Attach(entity);
            db.IssueTypes.Remove(entity);
            db.SaveChanges();
        }
        public void CreateIssueType(IssueTypeItem issueTypeItem)
        {
            var entity = new IssueType
            {
                IssueTypeName = issueTypeItem.IssueTypeName
            };

            db.IssueTypes.Add(entity);
            db.SaveChanges();
            issueTypeItem.IssueTypeID = entity.IssueTypeID;
        }
        public void UpdateIssueType(IssueTypeItem issueTypeItem)
        {
            var entity = new IssueType
            {
                IssueTypeID   = issueTypeItem.IssueTypeID,
                IssueTypeName = issueTypeItem.IssueTypeName
            };

            db.IssueTypes.Attach(entity);
            db.Entry(entity).State = EntityState.Modified;
            db.SaveChanges();
        }