コード例 #1
0
        public JsonResult Get(long id)
        {
            var repos  = new Repository.MstItem();
            var result = repos.Read(id);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public JsonResult GetTaxes()
        {
            var repos  = new Repository.MstItem();
            var result = repos.GetTaxes();

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
        public JsonResult Save(MstItem content)
        {
            var repos  = new Repository.MstItem();
            var result = repos.Save(content);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
コード例 #4
0
        public JsonResult BulkGet(MstItemFilter content)
        {
            var repos  = new Repository.MstItem();
            var result = content.FilterMethods == null
                ? repos.BulkRead()
                : repos.BulkRead(content, content.FilterMethods);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
コード例 #5
0
        public void Delete(int id)
        {
            var repos = new Repository.MstItem();

            repos.Delete(id);
        }