public string GetFGPValueForGrid(int companyId) { PVFService service = new PVFService(); IList <PVFItem> items = service.GetPVFByCompanyID(companyId); string result = JsonHelper.ObjectToJson(items); return(result); }
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"); }