I have tried to convert my response which is
In my case, I have one method which is return response in
Maybe<TEntity> form (means, it has value or no value). In the case of the object have no value it’s raise exception. However, I want to prevent that exception not by to throw a custom exception but object have no value, that time I want to perform another action.
Exception in below: