@ -4,7 +4,7 @@ namespace Yavsc.Resources
///<summary>
/// Makes possible the code injection
///</summary>
public class YavscLoc
public class YavscLocalisation
{
public static string ChooseAnEventDate {
get {
@ -33,7 +33,7 @@ namespace Yavsc.Controllers
public CommandController(ApplicationDbContext context,IOptions<GoogleAuthSettings> googleSettings,
IGoogleCloudMessageSender GCMSender,
UserManager<ApplicationUser> userManager,
IStringLocalizer<Yavsc.Resources.YavscLoc> localizer,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> localizer,
IEmailSender emailSender,
IOptions<SmtpSettings> smtpSettings,
IOptions<SiteSettings> siteSettings,
@ -51,7 +51,7 @@ namespace Yavsc.Controllers
IOptions<GoogleAuthSettings> googleSettings,
IOptions<PayPalSettings> paypalSettings,
IOptions<CompanyInfoSettings> cinfoSettings,
IStringLocalizer <Yavsc.Resources.YavscLoc>SR,
IStringLocalizer <Yavsc.Resources.YavscLocalisation>SR,
ILoggerFactory loggerFactory)
_dbContext = context;
@ -323,6 +323,7 @@ ILogger _logger;
protected virtual Task<Application> GetApplicationAsync(string identifier, CancellationToken cancellationToken)
// Retrieve the application details corresponding to the requested client_id.
_logger.LogWarning($"Ap count : {_context.Applications.Count()}");
return (from application in _context.Applications
where application.ApplicationID == identifier
select application).SingleOrDefaultAsync(cancellationToken);