un positionnement de paramètre workflow des pros

This commit is contained in:
Paul Schneider 2017-01-13 16:31:40 +01:00
commit 96746fcc0b
322 changed files with 25893 additions and 3844 deletions

View file

@ -0,0 +1,20 @@
using Microsoft.AspNet.Mvc;
namespace Yavsc.ViewComponents
{
using System.Threading.Tasks;
using Yavsc.ViewModels.UserFiles;
public class DirectoryViewComponent : ViewComponent
{
public async Task<IViewComponentResult> InvokeAsync(string dirname)
{
IViewComponentResult result = null;
await Task.Run(() =>
{
result = View(new UserDirectoryInfo(User.Identity.Name, dirname));
});
return result;
}
}
}