Esempio n. 1
0
        public IActionResult ThongKeBoPhan(LayThongKeBoPhanId model)
        {
            var url          = $"{Common.Common.ApiUrl}/quanly/LayThongKeBoPhanId";
            var responseData = GetMethod(url, model);

            List <ThongKe> thongKe = new List <ThongKe>();

            thongKe = JsonConvert.DeserializeObject <List <ThongKe> >(responseData);
            return(View(thongKe));
        }
Esempio n. 2
0
 public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model)
 {
     try
     {
         DynamicParameters parameters = new DynamicParameters();
         parameters.Add("@QuanLyId", model.QuanLyId);
         IList <ThongKe> list = SqlMapper.Query <ThongKe>((SqlConnection)con, "sp_LayThongKeBoPhanId", param: parameters, commandType: CommandType.StoredProcedure).ToList();
         return(list);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
 public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model)
 {
     return(_quanLyRepository.LayThongKeBoPhanId(model));
 }
Esempio n. 4
0
 public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model)
 {
     return(_quanLyService.LayThongKeBoPhanId(model));
 }