public ActionResult ShowCommentaryList()
        {
            CommentaryDataStore  Obj          = new CommentaryDataStore();
            List <SA_Commentary> IndustryList = Obj.GetCommentaryList();

            return(View("commentary-list", IndustryList));
        }
 public ActionResult LoadCommentaryData()
 {
     try
     {
         ProductDataStore    ObjProduct = new ProductDataStore();
         CommentaryDataStore Obj        = new CommentaryDataStore();
         var CommentaryList             = Obj.GetCommentaryList().Select(w => new IndustryVM
         {
             id         = w.id,
             Title      = w.Title,
             Type       = w.Type,
             CreateTime = w.CreatedTime != null ? w.CreatedTime.ToString("dd/MM/yyyy") : "",
             Product    = w.Product != null ? ObjProduct.GetProductByid(w.Product).ProductName : "",
         });
         return(Json(new { data = CommentaryList }, JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
         throw;
     }
 }