2
WhyMe
4y

I know lets create a method that does nothing like this other method, but call it the same thing with 'get' in front. Won't confuse anyone at all that

Comments
  • 2
    Adds get and set to all function names.

    "I know OOP now."
  • 0
    Setters are an anti-pattern. Use named constructors and method injection instead.
  • 1
    Don't forget to comment it!

    // gets user by id
    public User GetUserById(int id)
    {
    // get the user
    return _userRepo.Get(id);
    }

    I documented the code, boss.
Add Comment