public static string Logdetails(int id, int comid) { try { var prodata = new B2bCrmData(); var list = prodata.Logdetails(id, comid); return(JsonConvert.SerializeObject(new { type = 100, msg = list })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); throw; } }