Esempio n. 1
0
        public JsonResult ExecCommonWork(CommonWork oCommonWork)
        {
            CommonWork           objCommonWork        = new CommonWork();
            CommonWorkService    objCommonWorkService = new CommonWorkService();
            string               sFeedBackMessage     = objCommonWorkService.ExecCommonWork(oCommonWork, 1);
            JavaScriptSerializer serializer           = new JavaScriptSerializer();
            string               sjson = serializer.Serialize(sFeedBackMessage);

            return(Json(sjson, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public ActionResult ViewCommonWork(int nUserID)
        {
            SessionObj        oSessionobj        = new SessionObj(Session);
            CommonWork        oCommonWork        = new CommonWork();
            List <CommonWork> oCommonWorks       = new List <CommonWork>();
            CommonWorkService oCommonWorkService = new CommonWorkService();

            oCommonWorks        = oCommonWorkService.Gets(nUserID);
            ViewBag.CommonWorks = oCommonWorks;
            return(View());
        }