public ActionResult <IEnumerable <string> > Get([FromServices] IPacktPubService _packtPubService) { //var dateBy = ServicePacktpubReturn.GetDateAtMidnightRelativeCurrentDate(1); //var dateFrom = ServicePacktpubReturn.GetDateAtMidnightRelativeCurrentDate(2); //var res = _packtPubService.GetInformationsFreeLearningByRange(dateBy, dateFrom); //var res2 = _packtPubService.GetFreeBookProductById(res.Data.FirstOrDefault().ProductId); return(new string[] { "Test1", "Test2" }); }
public TelegramService(IPacktPubService packtPubService) { _packtPubService = packtPubService; }