public JsonResult InsertExpenseGroup(FormCollection coll) { try { string result = string.Empty; DataSet ds = new DataSet(); DataControl.JSONConverter objJson = new DataControl.JSONConverter(); result = _objSP.InsertExpenseGroup(coll["insertExpense"].ToString(), coll["grpName"].ToString()); if (result == "SUCCESS") { _objData.OpenConnection(_objCurr.GetCompanyCode()); { ds = _objData.ExecuteDataSet("exec SP_hdGetExpenseGroup '" + _objCurr.GetCompanyCode() + "'"); } } return(Json(objJson.Serialize(ds))); } catch (Exception ex) { throw ex; } finally { _objData.CloseConnection(); } }