public ActionResult LockRecord(string refNumber) { var result = _clsGlobal.LockRecord("Spotter", refNumber, User.Identity.Name); var res = new JsonResult() { Data = result, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; return(res); }