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)); }
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; } }
public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model) { return(_quanLyRepository.LayThongKeBoPhanId(model)); }
public IList <ThongKe> LayThongKeBoPhanId(LayThongKeBoPhanId model) { return(_quanLyService.LayThongKeBoPhanId(model)); }