I have a simple data-level procedure that updates the password, the user passes the following:
- Current password, new password, confirmation of the new password.
In my data layer (proc) several things are checked, such as:
- Is the current password correct?
- Is the new password correct and confirm the password?
- Has a new password been assigned in the past?
And so on...
Now I know that I can just create a class and return a couple of logical elements:
public class UpdatePasswordResponse{ public bool CurrentPasswordCorrect {get;set;} ....(and so on) }
But is there a way to dynamically return this information to the biz level in the properties, and not create a new class each time (for each data-level procedure)? I think I remember that it was possible. I'm sure I read it somewhere, but I donβt remember the syntax, can someone help me?
source share