Пример #1
0
        public string GetFGPValueForGrid(int companyId)
        {
            PVFService service = new PVFService();
            IList<PVFItem> items = service.GetPVFByCompanyID(companyId);

            string result = JsonHelper.ObjectToJson(items);

            return result;
        }
Пример #2
0
        public string SavePVFValues(string myJsonData)
        {
            PVFChanges changed = (PVFChanges)JsonHelper.JsonToObject(myJsonData, new PVFChanges());

            PVFService service = new PVFService();

            service.SavePVFValues(changed.inserted, changed.updated, changed.deleted);

            return "1";
        }