public ActionResult History(int rowid, int doc_id, string from) { if (getCurrentUser() == null) { return(RedirectToAction("Index", "Login")); } else { ViewBag.from = from; return(View(ihold.GetHoldsbyDocument(rowid, doc_id))); } }
public String HoldHistory(int rowid, int doc_id) { Result result = new Result(); try { result.Objects = ihold.GetHoldsbyDocument(rowid, doc_id); result.Message = "Success"; return(JsonConvert.SerializeObject(result)); } catch (Exception ex) { result.Objects = null; result.Message = ex.Message; return(JsonConvert.SerializeObject(result)); } }