private void DeleteFarmAccount(SafeDTO entity) { var farmAccount = GetFarmAccountBySafeId(entity.Id); if (farmAccount != null) { _farmAccountDSL.Delete(farmAccount.Id); } }
public async Task <IActionResult> Delete(int id) => Ok(await _farmAccountDSL.Delete(id));