RSS Feed/News Returning error from repository

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,914
Points
823

Reputation:

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)?

Continue reading...
 
Status
Not open for further replies.
Top