예제 #1
0
        public ActionResult DeleteRQ3(FormCollection form)
        {
            Request_StationeryModel   rs   = new Request_StationeryModel();
            RequestModel              rq   = new RequestModel();
            List <Request_Stationery> rstm = dc.Request_Stationeries.ToList();

            foreach (Request_Stationery rst in rstm)
            {
                if (Convert.ToInt32(form["requestid"]) == rst.RequestId)
                {
                    rs.DeleteRQ_st(Convert.ToInt32(form["requestid"]));
                }
            }
            if (rq.DeleteRQ(Convert.ToInt32(form["requestid"])))
            {
                Session["dlrequest"] = 1;
            }
            else
            {
                Session["dlrequest"] = 2;
            }

            return(RedirectToAction("Myrequest10/#tabs-7"));
        }