常用方法
常用方法
常用方法
常用方法
public async ValueTask <ActionResult> LeadSoftDelete(long leadId) { if (leadId < 1) { return(BadRequest("LeadId can not be less than one.")); } var result = await _leadRepository.DeleteLeadById(leadId); if (result.IsOkay) { return(Ok()); } return(Problem($"Transaction failed {result.ExMessage}", statusCode: 520)); }