public void SetMainOrganization(OrganizationModel organization)
 {
     if (organization.IsMain)
     {
         var orgs = GetAllOrganizations().ToList();
         foreach (var o in orgs)
         {
             if (o.IsMain)
             {
                 o.IsMain = false;
                 _organizationRepository.UpdateOrganization(_modelToEntity.Convert(o));
             }
         }
         _organizationRepository.UpdateOrganization(_modelToEntity.Convert(organization));
     }
 }
 public void RemoveOrganization(OrganizationModel organization)
 {
     _organizationRepository.RemoveOrganization(_modelToEntity.Convert(organization));
 }
 public void AddOrganization(OrganizationModel organization)
 {
     _organizationRepository.AddNewOrganization(_modelToEntity.Convert(organization));
 }