public JObject GetSkillGroups(string connectionString, int accountId) { try { DataAccessLayer.SkillGroup skillObj = new DataAccessLayer.SkillGroup(connectionString); System.Data.DataSet ds = skillObj.GetSkillGroups(accountId); if (ds.IsNull()) { _helper.CreateProperty(UDC.Label.SUCCESS, false); _helper.CreateProperty(UDC.Label.MESSAGE, skillObj.ErrorMessage); } else { _helper.ParseDataSet(ds); } } catch (Exception e) { Utilities.Logger.Error(e.ToString()); _helper.InitializeResponseVariables(); _helper.CreateProperty(UDC.Label.SUCCESS, false); _helper.CreateProperty(UDC.Label.MESSAGE, e.Message); } return(_helper.GetResponse()); }
public DataSet GetSkillGroupsDs(String connection, int accountId) { DataSet ds = new DataSet(); try { DataAccessLayer.SkillGroup skillObj = new DataAccessLayer.SkillGroup(connection); ds = skillObj.GetSkillGroups(accountId); } catch (Exception ex) { Logger.Error("Exception In BAL.GetSkillGroupsDs " + ex.ToString()); } return(ds); }