/// <summary>
 /// Activate organization
 /// </summary>
 /// <param name="organizationId"></param>
 /// <returns></returns>
 public virtual async Task <ResultModel> ActivateOrganizationAsync(Guid?organizationId) =>
 await _organizationContext.ActivateRecordAsync <Organization>(organizationId);
 /// <summary>
 /// Activate Employee
 /// </summary>
 /// <param name="employeeId"></param>
 /// <returns></returns>
 public virtual async Task <ResultModel> ActivateEmployeeAsync(Guid?employeeId) =>
 await _context.ActivateRecordAsync <Employee>(employeeId);
 /// <summary>
 /// Activate organization address by id
 /// </summary>
 /// <param name="addressId"></param>
 /// <returns></returns>
 public virtual async Task <ResultModel> ActivateAddressByIdAsync(Guid?addressId) =>
 await _context.ActivateRecordAsync <OrganizationAddress>(addressId);
Example #4
0
 /// <summary>
 /// Activate Industry by id
 /// </summary>
 /// <param name="industryId"></param>
 /// <returns></returns>
 public virtual async Task <ResultModel> ActivateIndustryAsync(Guid?industryId) =>
 await _context.ActivateRecordAsync <Industry>(industryId);
 /// <summary>
 /// Activate contact by id
 /// </summary>
 /// <param name="contactId"></param>
 /// <returns></returns>
 public virtual async Task <ResultModel> ActivateContactAsync(Guid?contactId) =>
 await _organizationContext.ActivateRecordAsync <Contact>(contactId);