/// <summary> /// Deactivate organization /// </summary> /// <param name="organizationId"></param> /// <returns></returns> public virtual async Task <ResultModel> DeactivateOrganizationAsync(Guid?organizationId) => await _organizationContext.DisableRecordAsync <Organization>(organizationId);
/// <summary> /// Disable Employee /// </summary> /// <param name="employeeId"></param> /// <returns></returns> public virtual async Task <ResultModel> DisableEmployeeAsync(Guid?employeeId) => await _context.DisableRecordAsync <Employee>(employeeId);
/// <summary> /// Disable organization address by id /// </summary> /// <param name="addressId"></param> /// <returns></returns> public virtual async Task <ResultModel> DisableAddressByIdAsync(Guid?addressId) => await _context.DisableRecordAsync <OrganizationAddress>(addressId);
/// <summary> /// Deactivate industry by id /// </summary> /// <param name="industryId"></param> /// <returns></returns> public virtual async Task <ResultModel> DisableIndustryAsync(Guid?industryId) => await _context.DisableRecordAsync <Industry>(industryId);
/// <summary> /// Deactivate contact by id /// </summary> /// <param name="contactId"></param> /// <returns></returns> public virtual async Task <ResultModel> DeactivateContactAsync(Guid?contactId) => await _organizationContext.DisableRecordAsync <Contact>(contactId);