refactoring

main
Paul Schneider 9 years ago
parent ae32fc0ede
commit e3553de17c
4 changed files with 4 additions and 5 deletions

@ -69,7 +69,7 @@ namespace Yavsc.Controllers
var pro = _context.Performers.Include( var pro = _context.Performers.Include(
pr => pr.Performer pr => pr.Performer
).FirstOrDefault( ).FirstOrDefault(
x=>x.PerfomerId == bookQuery.PerformerId x=>x.PerformerId == bookQuery.PerformerId
); );
if (pro==null) if (pro==null)
return HttpNotFound(); return HttpNotFound();
@ -95,7 +95,7 @@ namespace Yavsc.Controllers
[Produces("text/x-tex"), Authorize, [Produces("text/x-tex"), Authorize,
Route("Release/Estimate-{id}.tex")] Route("Release/Estimate-{id}.tex")]
public RDVEstimate Estimate(long id) public Estimate Estimate(long id)
{ {
var estimate = _context.Estimates.Include(x=>x.Query). var estimate = _context.Estimates.Include(x=>x.Query).
Include(x=>x.Query.Client).FirstOrDefault(x=>x.Id==id); Include(x=>x.Query.Client).FirstOrDefault(x=>x.Id==id);

@ -5,7 +5,7 @@ using Yavsc.Models.Billing;
namespace Yavsc.Helpers namespace Yavsc.Helpers
{ {
public static class FileSystemHelpers { 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) if (estimate?.Query?.PerformerProfile?.Performer == null)
return null; return null;

@ -29,7 +29,6 @@ namespace Yavsc
public static FacebookOptions FacebookAppOptions { get; private set; } public static FacebookOptions FacebookAppOptions { get; private set; }
public static OAuthAuthorizationServerOptions OAuthServerAppOptions { 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 YavscGoogleOptions YavscGoogleAppOptions { get; private set; }
public static MonoDataProtectionProvider ProtectionProvider { get; private set; } public static MonoDataProtectionProvider ProtectionProvider { get; private set; }

@ -22,7 +22,7 @@ namespace Yavsc.ViewModels.Manage
public long PostsCounter { get; set; } public long PostsCounter { get; set; }
public AccountBalance Balance { get; set; } public IAccountBalance Balance { get; set; }
public long ActiveCommandCount { get; set; } public long ActiveCommandCount { get; set; }

Loading…