Esempio n. 1
0
        public async Task <List <AppointmentEdit> > Query(Dictionary <string, object> param)
        {
            try
            {
                var data = await _adapterPattern.ExecuteQuery <AppointmentEdit>(param, "usp_Appointment", DataConfiguration.instanceCore);

                return(data.ToList());
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(null);
            }
        }
Esempio n. 2
0
        public async Task <Schedule> GetScheduleExamine(Dictionary <string, object> param)
        {
            try
            {
                var data = await _adapterPattern.ExecuteQuery <Schedule>(param, "usp_spa_ScheduleExamine", DataConfiguration.instanceCore);

                return(data.FirstOrDefault());
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(null);
            }
        }
Esempio n. 3
0
        public async Task <List <User> > GetUserHaveScheduleExamine(Dictionary <string, object> param)
        {
            try
            {
                var data = await _adapterPattern.ExecuteQuery <User>(param, "usp_spa_User_HasScheduleExamine", DataConfiguration.instanceCore);

                return(data.ToList());
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(null);
            }
        }
Esempio n. 4
0
        public async Task <IEnumerable <DepartmentServices> > Query(Dictionary <string, dynamic> para)
        {
            try
            {
                var data = await _adapterPattern.ExecuteQuery <DepartmentServices>(para, "usp_spa_DepartmentServices", DataConfiguration.instanceCore);

                return(data.ToList());
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(null);
            }
        }
Esempio n. 5
0
        public async Task <List <Feature> > Query(Dictionary <string, object> param)
        {
            try
            {
                var data = await _adapterPattern.ExecuteQuery <Feature>(param, "usp_spa_Feature", DataConfiguration.instanceCMS);

                return(data.ToList());
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(null);
            }
        }
Esempio n. 6
0
        /// <summary>
        /// Get Module
        /// </summary>
        /// <param name="param">Dictionary</param>
        /// <returns>List Module</returns>
        public async Task <IEnumerable <Module> > Query(Dictionary <string, object> param, string procedureName)
        {
            try
            {
                var data = await _adapterPattern.ExecuteQuery <Module>(param, procedureName, DataConfiguration.instanceCore);

                return(data.ToList());
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(null);
            }
        }
Esempio n. 7
0
 /// <summary>
 /// Get all
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <Advertise> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <Advertise>(para, "usp_Advertise"));
 }
Esempio n. 8
0
 /// <summary>
 /// Get all
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <PostList> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <PostList>(para, "usp_Post"));
 }
Esempio n. 9
0
 /// <summary>
 /// Get all
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <Category> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <Category>(para, "usp_Category"));
 }
Esempio n. 10
0
 /// <summary>
 /// Get all 
 /// </summary>
 /// <returns></returns>
 public async Task<IEnumerable<Slider>> Query(Dictionary<string, dynamic> para)
 {
     return await _adapterPattern.ExecuteQuery<Slider>(para, "usp_Slider");
 }
Esempio n. 11
0
 /// <summary>
 /// Get all
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <Workflow> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <Workflow>(para, "usp_Workflow"));
 }
Esempio n. 12
0
 /// <summary>
 /// Get all
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <LinkBuilding> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <LinkBuilding>(para, "usp_LinkBuilding"));
 }
Esempio n. 13
0
 /// <summary>
 /// Get all
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <GalleryStore> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <GalleryStore>(para, "usp_GalleryStore"));
 }
Esempio n. 14
0
 public async Task <IEnumerable <T> > ExecuteQuery <T>(Dictionary <string, dynamic> obj, string proc, byte instance)
 {
     return(await _adapterPattern.ExecuteQuery <T>(obj, proc, instance));
 }
Esempio n. 15
0
 public async Task <IEnumerable <QA> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <QA>(para, "usp_QA", DataConfiguration.instanceCore));
 }
Esempio n. 16
0
 /// <summary>
 /// Get all
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <DepartmentServices> > Query(Dictionary <string, dynamic> para)
 {
     return(await _adapterPattern.ExecuteQuery <DepartmentServices>(para, "usp_DepartmentServices", 2));
 }
Esempio n. 17
0
 public Task <IEnumerable <int> > Internal_Counter()
 {
     return(_adapterPattern.ExecuteQuery <int>(null, "usp_Internal_Dashboard", DataConfiguration.instanceCore));
 }