Beispiel #1
0
 public ActionResult ViewReqStasus()
 {
     try
     {
         if (Session["UserId"] == null)
         {
             return(RedirectToAction("Index", "Home"));
         }
         if (Session["ReqmenuId"] == null)
         {
             return(RedirectToAction("SampleRequest"));
         }
         var Id     = Convert.ToInt32(Session["UserId"]);
         var MenuId = Convert.ToInt32(Session["ReqmenuId"]);
         Chatpata_dabbaEntities1 Entity = new Chatpata_dabbaEntities1();
         var ReqDetails = Entity.ViewSampleRequest().Where(q => q.CustId == Id && q.MenuId == MenuId).ToList();
         return(View(ReqDetails));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }