예제 #1
0
 // GET: Project/Details/5
 public ActionResult Details(int id)
 {
     if (logic.GetProjectByID(id) != null)
     {
         return(View(logic.GetProjectByID(id)));
     }
     else
     {
         return(HttpNotFound());
     }
 }
예제 #2
0
        public void GetProjectByID()
        {
            Random r = new Random();
            int    x = r.Next(1, 4);

            Assert.AreEqual(x, pl.GetProjectByID(x).ID);
        }