Example #1
0
    public virtual async Task<IActionResult> Delete(Guid id)
    {
      var entity = await repository.GetAsync(id);
      if (entity != null)
      {
        await repository.DeleteAsync(await repository.GetAsync(id));
        await unitOfWork.CommitAsync();
      }

      return Ok();
    }