This commit is contained in:
2017-03-05 20:29:02 +01:00
parent 2dd1f355ae
commit 2ffc458382
4 changed files with 8 additions and 19 deletions

View File

@ -17,6 +17,7 @@ namespace Yavsc.ApiControllers
using Yavsc.Services;
using Yavsc.Models.Messaging;
using Yavsc.ViewModels;
using Microsoft.Extensions.OptionsModel;
[Route("api/pdfestimate"), Authorize]
public class PdfEstimateController : Controller
@ -33,12 +34,17 @@ namespace Yavsc.ApiControllers
IAuthorizationService authorizationService,
ILoggerFactory loggerFactory,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> SR,
ApplicationDbContext context)
ApplicationDbContext context,
IOptions<GoogleAuthSettings> googleSettings,
IGoogleCloudMessageSender GCMSender
)
{
_googleSettings=googleSettings.Value;
this.authorizationService = authorizationService;
dbContext = context;
logger = loggerFactory.CreateLogger<PdfEstimateController>();
this._localizer = SR;
_GCMSender=GCMSender;
}
[HttpGet("get/{id}", Name = "Get"), Authorize]