public AnimalsController(AnimalApiContext db) { _db = db; }
public CatApiController(AnimalApiContext context, IMapper mapper) { _mapper = mapper; _context = context; }
public UserService(IOptions <AppSettings> appSettings, AnimalApiContext context) { _context = context; _appSettings = appSettings.Value; }
public CatApiController(AnimalApiContext context, IMapper mapper) //Convention over Configuration: The program knows to omit Controller from the name { _mapper = mapper; _context = context; }
public UsersController(AnimalApiContext db, IUserService userService) { _db = db; _userService = userService; }