/// <summary>
 /// Delete product
 /// </summary>
 /// <param name="productId"></param>
 /// <returns></returns>
 public virtual async Task <ResultModel> DeleteProductAsync(Guid?productId) =>
 await _context.RemovePermanentRecordAsync <Product>(productId);
Beispiel #2
0
 /// <summary>
 /// Delete lead
 /// </summary>
 /// <param name="leadId"></param>
 /// <returns></returns>
 public async Task <ResultModel> DeleteLeadAsync(Guid?leadId)
 => await _context.RemovePermanentRecordAsync <Lead>(leadId);
 /// <summary>
 /// Delete permanently
 /// </summary>
 /// <param name="agreementId"></param>
 /// <returns></returns>
 public virtual async Task <ResultModel> DeleteAgreementAsync(Guid?agreementId) =>
 await _context.RemovePermanentRecordAsync <Agreement>(agreementId);