public void OrganizationDto_Extension_AsEntity_Null()
        {
            OrganizationDto organization = null;
            var             result       = organization.AsEntity();

            Assert.IsNull(result);
            Assert.AreEqual(null, result);
        }
        public GenericServiceResponse <bool> DeleteOrganization(OrganizationDto organization)
        {
            return(TryExecute <GenericServiceResponse <bool> >((response) =>
            {
                response.Result = Repository.Delete(organization.AsEntity());

                if (!response.Result)
                {
                    var errorMessage = "'DeleteOrganization' was unable to delete the given organization record.";
                    response.Notifications.AddError(errorMessage);
                    Logger.Error(errorMessage);
                }
            }));
        }