Ejemplo 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));
        }
Ejemplo 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;
     }
 }
Ejemplo n.º 3
0
 public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model)
 {
     return(_quanLyRepository.LayThongKeBoPhanId(model));
 }
Ejemplo n.º 4
0
 public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model)
 {
     return(_quanLyService.LayThongKeBoPhanId(model));
 }