From e3553de17ce1969d2c186f3a13c2943c88bfafb8 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 27 Jul 2016 11:08:45 +0200 Subject: [PATCH] refactoring --- Yavsc/Controllers/FrontOfficeController.cs | 4 ++-- Yavsc/Helpers/FileSystemHelpers.cs | 2 +- Yavsc/Startup/Startup.OAuth.cs | 1 - Yavsc/ViewModels/Manage/IndexViewModel.cs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Yavsc/Controllers/FrontOfficeController.cs b/Yavsc/Controllers/FrontOfficeController.cs index a7eb46f8..f68d0415 100644 --- a/Yavsc/Controllers/FrontOfficeController.cs +++ b/Yavsc/Controllers/FrontOfficeController.cs @@ -69,7 +69,7 @@ namespace Yavsc.Controllers var pro = _context.Performers.Include( pr => pr.Performer ).FirstOrDefault( - x=>x.PerfomerId == bookQuery.PerformerId + x=>x.PerformerId == bookQuery.PerformerId ); if (pro==null) return HttpNotFound(); @@ -95,7 +95,7 @@ namespace Yavsc.Controllers [Produces("text/x-tex"), Authorize, Route("Release/Estimate-{id}.tex")] - public RDVEstimate Estimate(long id) + public Estimate Estimate(long id) { var estimate = _context.Estimates.Include(x=>x.Query). Include(x=>x.Query.Client).FirstOrDefault(x=>x.Id==id); diff --git a/Yavsc/Helpers/FileSystemHelpers.cs b/Yavsc/Helpers/FileSystemHelpers.cs index 74984222..62d88970 100644 --- a/Yavsc/Helpers/FileSystemHelpers.cs +++ b/Yavsc/Helpers/FileSystemHelpers.cs @@ -5,7 +5,7 @@ using Yavsc.Models.Billing; namespace Yavsc.Helpers { public static class FileSystemHelpers { - public static IDirectoryContents GetFileContent(this RDVEstimate estimate, string userFileDir) + public static IDirectoryContents GetFileContent(this Estimate estimate, string userFileDir) { if (estimate?.Query?.PerformerProfile?.Performer == null) return null; diff --git a/Yavsc/Startup/Startup.OAuth.cs b/Yavsc/Startup/Startup.OAuth.cs index 20a8bfb5..2af80caa 100644 --- a/Yavsc/Startup/Startup.OAuth.cs +++ b/Yavsc/Startup/Startup.OAuth.cs @@ -29,7 +29,6 @@ namespace Yavsc public static FacebookOptions FacebookAppOptions { get; private set; } public static OAuthAuthorizationServerOptions OAuthServerAppOptions { get; private set; } - public static OAuthOptions OAuthClientOptions { get; set; } public static YavscGoogleOptions YavscGoogleAppOptions { get; private set; } public static MonoDataProtectionProvider ProtectionProvider { get; private set; } diff --git a/Yavsc/ViewModels/Manage/IndexViewModel.cs b/Yavsc/ViewModels/Manage/IndexViewModel.cs index 1b12c792..c6a8c25d 100644 --- a/Yavsc/ViewModels/Manage/IndexViewModel.cs +++ b/Yavsc/ViewModels/Manage/IndexViewModel.cs @@ -22,7 +22,7 @@ namespace Yavsc.ViewModels.Manage public long PostsCounter { get; set; } - public AccountBalance Balance { get; set; } + public IAccountBalance Balance { get; set; } public long ActiveCommandCount { get; set; }