Ejemplo n.º 1
0
 public ActionResult SingleProduct(int?Id, ProjectDetails details)
 {
     if (Session["username"] == null)
     {
         return(RedirectToAction("../Login/Login"));
     }
     else
     {
         DataSet ds = new DataSet();
         ds = details.GetByProductID_SingleProjectDetails();
         if (ds.Tables[0].Rows.Count > 0)
         {
             details.projectname    = ds.Tables[0].Rows[0]["ProjectName"].ToString();
             details.cost           = Convert.ToInt32(ds.Tables[0].Rows[0]["Cost"].ToString());
             details.features       = ds.Tables[0].Rows[0]["Features"].ToString();
             details.description    = ds.Tables[0].Rows[0]["Description"].ToString();
             details.technologyname = ds.Tables[0].Rows[0]["TechnologyName"].ToString();
             details.screenshot     = ds.Tables[0].Rows[0]["Screenshot"].ToString();
         }
     }
     return(View(details));
 }