コード例 #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));
        }
コード例 #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;
     }
 }
コード例 #3
0
ファイル: QuanLyService.cs プロジェクト: war-man/CaseStudy-2
 public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model)
 {
     return(_quanLyRepository.LayThongKeBoPhanId(model));
 }
コード例 #4
0
 public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model)
 {
     return(_quanLyService.LayThongKeBoPhanId(model));
 }