public void DeleteOrganization(OrganizationItem organizationItem)
        {
            var entity = new Organization
            {
                OrganizationID = organizationItem.OrganizationID
            };

            db.Organizations.Attach(entity);
            db.Organizations.Remove(entity);
            db.SaveChanges();
        }
        public void CreateOrganization(OrganizationItem organizationItem)
        {
            var entity = new Organization
            {
                OrganizationName = organizationItem.OrganizationName
            };

            db.Organizations.Add(entity);
            db.SaveChanges();
            organizationItem.OrganizationID = entity.OrganizationID;
        }
        public void UpdateOrganization(OrganizationItem organizationItem)
        {
            var entity = new Organization
            {
                OrganizationID   = organizationItem.OrganizationID,
                OrganizationName = organizationItem.OrganizationName
            };

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