-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from fabien-ss/pdf
Evaluation done
- Loading branch information
Showing
235 changed files
with
11,770 additions
and
979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using AspnetCoreMvcFull.Context; | ||
using AspnetCoreMvcFull.Models.dashboard; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace AspnetCoreMvcFull.Controllers; | ||
|
||
public class AdminDashBoardController : Controller | ||
{ | ||
private readonly ConstructionDb ConstructionDb; | ||
|
||
public AdminDashBoardController(ConstructionDb constructionDb) | ||
{ | ||
this.ConstructionDb = constructionDb; | ||
} | ||
// GET | ||
[HttpGet] | ||
public IActionResult Index() | ||
{ | ||
DashBoard dashBoard = new DashBoard(); | ||
dashBoard.setMontantParMois(constructionDb:ConstructionDb); | ||
dashBoard.setMontantTotal(ConstructionDb); | ||
dashBoard.VSommePaiements = ConstructionDb.VSommePaiements.ToList(); | ||
return View(dashBoard); | ||
} | ||
[HttpPost] | ||
public IActionResult Index(string annee) | ||
{ | ||
DashBoard dashBoard = new DashBoard(); | ||
Console.WriteLine("annee ",annee); | ||
dashBoard.TargetYear = annee; | ||
dashBoard.setMontantParMois(constructionDb:ConstructionDb); | ||
dashBoard.setMontantTotal(ConstructionDb); | ||
dashBoard.VSommePaiements = ConstructionDb.VSommePaiements.ToList(); | ||
return View(dashBoard); | ||
} | ||
|
||
} |
Oops, something went wrong.