public JsonResult GetDocumentType()
        {
            DocumentType objdoc = null;

            DataTable dt = new DataTable();
            // dt = objdb.GetDocumenttype();
            var result = objdb.GetDocumenttype();

            //ViewBag.DocList = ToSelectList(dt, "DocType_Code", "DocType_Name");
            return(Json(result));
        }
        public static List <DocumentType> GetDocumentTypeList()
        {
            DocumentContext Ctx = new DocumentContext();

            return(Ctx.GetDocumenttype());
        }