public bool Delete(int m_nDelegationMasterId, string sConnectionString, int nLoggedInUserId) { try { //InsiderTradingDAL.DelegationMasterDAL objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL(); using (var objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL()) { return(objDelegationMasterDAL.Delete(m_nDelegationMasterId, sConnectionString, nLoggedInUserId)); } } catch (Exception e) { throw e; } }
public DelegationMasterDTO GetDetails(DelegationMasterDTO m_objDelegationMasterDTO, string sConnectionString) { try { //InsiderTradingDAL.DelegationMasterDAL objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL(); using (var objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL()) { return(objDelegationMasterDAL.GetDetails(m_objDelegationMasterDTO, sConnectionString)); } } catch (Exception e) { throw e; } }
public DelegationMasterDTO SaveDetails(DelegationMasterDTO m_objDelegationMasterDTO, int m_nPartialSave, string sConnectionString, int nLoggedInUserId) { try { //InsiderTradingDAL.DelegationMasterDAL objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL(); using (var objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL()) { return(objDelegationMasterDAL.SaveDetails(m_objDelegationMasterDTO, m_nPartialSave, sConnectionString, nLoggedInUserId)); } } catch (Exception e) { throw e; } }
public Dictionary <string, Dictionary <string, List <RoleActivityDTO> > > GetDelegationActivityDetails(string sConnectionString, int m_nDelegationID, int m_nUserInfoIdFrom, int m_nUserInfoIdTo) { List <RoleActivityDTO> lstDelegationActivities = null; Dictionary <string, Dictionary <string, List <RoleActivityDTO> > > objModuleDictionary = null; Dictionary <string, List <RoleActivityDTO> > objScreenDictionary = null; try { objModuleDictionary = new Dictionary <string, Dictionary <string, List <RoleActivityDTO> > >(); //InsiderTradingDAL.DelegationMasterDAL objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL(); using (var objDelegationMasterDAL = new InsiderTradingDAL.DelegationMasterDAL()) { lstDelegationActivities = objDelegationMasterDAL.GetDelegationActivityDetails(sConnectionString, m_nDelegationID, m_nUserInfoIdFrom, m_nUserInfoIdTo); } foreach (RoleActivityDTO objRoleActivityDTO in lstDelegationActivities) { if (objModuleDictionary.ContainsKey(objRoleActivityDTO.Module)) { objScreenDictionary = objModuleDictionary[objRoleActivityDTO.Module]; } else { objScreenDictionary = new Dictionary <string, List <RoleActivityDTO> >(); } if (objScreenDictionary.ContainsKey(objRoleActivityDTO.ScreenName)) { lstDelegationActivities = objScreenDictionary[objRoleActivityDTO.ScreenName]; } else { lstDelegationActivities = new List <RoleActivityDTO>(); } lstDelegationActivities.Add(objRoleActivityDTO); objScreenDictionary[objRoleActivityDTO.ScreenName] = lstDelegationActivities; objModuleDictionary[objRoleActivityDTO.Module] = objScreenDictionary; //objScreenDictionary = new Dictionary<string,List<RoleActivityDTO>>(); } } catch (Exception e) { throw e; } return(objModuleDictionary); }
public bool DelegationDetailsSaveDelete(string i_sConnectionString, DataTable i_tblDelegationDetails, int i_nLoggedInUserID) { bool bReturn = true; try { //InsiderTradingDAL.DelegationMasterDAL objDelegationDetailsDAL = new InsiderTradingDAL.DelegationMasterDAL(); using (var objDelegationDetailsDAL = new InsiderTradingDAL.DelegationMasterDAL()) { bReturn = objDelegationDetailsDAL.DelegationDetailsSaveDelete(i_sConnectionString, i_tblDelegationDetails, i_nLoggedInUserID); } } catch (Exception exp) { throw exp; } return(bReturn); }