public async Task <OperationResult> DeleteAsync(Guid id) { try { await _dao.DeleteAsync(id); return(new OperationResult() { Success = true }); } catch (Exception e) { return(new OperationResult() { Success = false, Exception = e }); } }
public async Task <OperationResult> DeleteAsync(Profile profile) { try { await _dao.DeleteAsync(profile); return(new OperationResult() { Success = true }); } catch (Exception e) { return(new OperationResult() { Success = true, Exception = e }); } }