Beispiel #1
0
        public ActionResult RepertoireClient()
        {
            var viewModel = new RepertoireVM();

            viewModel.clientRepertoire = cli.GetAllClient();
            return(View(viewModel));
        }
Beispiel #2
0
        public ActionResult RepertoireCieMari()
        {
            var viewModel = new RepertoireVM();

            viewModel.cieMaritimeRepertoire = cieMar.GetAllCieMaritime();
            return(View(viewModel));
        }
Beispiel #3
0
        public ActionResult RepertoireTrans()
        {
            var viewModel = new RepertoireVM();

            viewModel.transRepertoire = trsMgr.GetAllTrans();
            return(View(viewModel));
        }
Beispiel #4
0
        public ActionResult Repertoire(int?IdClient, int?idTrans, int?idCieMari)
        {
            var viewModel = new RepertoireVM();

            if (IdClient != null)
            {
                viewModel.clientRepertoire = cli.GetAllClient();
                return(View(viewModel));
            }
            if (idTrans != null)
            {
                viewModel.transRepertoire = trsMgr.GetAllTrans();
                return(View(viewModel));
            }
            if (idCieMari != null)
            {
                viewModel.cieMaritimeRepertoire = cieMar.GetAllCieMaritime();
                return(View(viewModel));
            }
            viewModel.cieMaritimeRepertoire = cieMar.GetAllCieMaritime();
            viewModel.clientRepertoire      = cli.GetAllClient();
            viewModel.transRepertoire       = trsMgr.GetAllTrans();


            return(View(viewModel));
        }