예제 #1
0
 public EventController(IGenericServiceAsync <EventDto, Event> genericService, IEventService eventService, UserManager <ApplicationUser> userManager) : base(genericService)
 {
     _eventService = eventService;
     _userManager  = userManager;
 }
예제 #2
0
 public SalesController(IGenericServiceAsync <Sale> service, ISalesService salesService)
 {
     _service      = service;
     _salesService = salesService;
 }
예제 #3
0
 public GenericBaseControllerAsync(IGenericServiceAsync <TDto, TEntity> service)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
예제 #4
0
 public FriendshipController(IGenericServiceAsync <FriendshipDto, Friendship> genericService, IFriendshipService friendshipService, UserManager <ApplicationUser> userManager) : base(genericService)
 {
     _friendshipService = friendshipService;
     _userManager       = userManager;
 }
예제 #5
0
 public UserController(IGenericServiceAsync <UserDto, ApplicationUser> service) : base(service)
 {
 }