Returning error from repository

Is it ok practice to return an error from a function in a repository class? When trying to reference the error() method used by a controller, I noticed it not available for use.

Similarly, what is the proper way to reference the error method from the Repository (not sure why, but IntelliSense in VScode for me doesn't recognize the method, even in my controllers)?

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ