Exemplo n.º 1
0
        // GET: Signalements/Create
        public ActionResult Create(int?avisDeRechercheId)
        {
            Signalement s   = new Signalement();
            var         adr = AvisDeRechercheDAL.getInstance().getById((int)avisDeRechercheId);

            if (adr == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            s.avisDeRecherche = adr;
            return(View(s));
        }
Exemplo n.º 2
0
        // GET: AvisDeRecherches/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AvisDeRecherche avisDeRecherche = AvisDeRechercheDAL.getInstance().getById((int)id);

            if (avisDeRecherche == null)
            {
                return(HttpNotFound());
            }
            return(View(avisDeRecherche));
        }
Exemplo n.º 3
0
 public ActionResult Mine()
 {
     ViewBag.Title = "Mes avis de recherche";
     return(View("Index", AvisDeRechercheDAL.getInstance().getMine(User.Identity.Name)));
 }