refabrique des commandes
This commit is contained in:
parent
45ead1cab7
commit
6bf8c8da65
38 changed files with 2479 additions and 257 deletions
|
|
@ -1,18 +1,18 @@
|
|||
using System.IO;
|
||||
using Microsoft.AspNet.FileProviders;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Models.Billing;
|
||||
|
||||
namespace Yavsc.Helpers
|
||||
{
|
||||
public static class FileSystemHelpers {
|
||||
public static IDirectoryContents GetFileContent(this Estimate estimate, string userFileDir)
|
||||
public static IDirectoryContents GetFileContent(this RDVEstimate estimate, string userFileDir)
|
||||
{
|
||||
if (estimate?.Command?.PerformerProfile?.Performer == null)
|
||||
if (estimate?.Query?.PerformerProfile?.Performer == null)
|
||||
return null;
|
||||
var fsp = new PhysicalFileProvider(
|
||||
Path.Combine(
|
||||
userFileDir,
|
||||
estimate.Command.PerformerProfile.Performer.UserName
|
||||
estimate.Query.PerformerProfile.Performer.UserName
|
||||
));
|
||||
return fsp.GetDirectoryContents(
|
||||
Path.Combine(Constants.UserBillsFilesDir, estimate.Id.ToString())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue