public IActionResult ThongKeNhanVien(LayThongKeNhanVienId model) { var url = $"{Common.Common.ApiUrl}/quanly/LayThongKeNhanVienId"; var responseData = GetMethod(url, model); List <ThongKe> thongKe = new List <ThongKe>(); thongKe = JsonConvert.DeserializeObject <List <ThongKe> >(responseData); return(View(thongKe)); }
public IList <ThongKe> LayThongKeNhanVienId(LayThongKeNhanVienId model) { try { DynamicParameters parameters = new DynamicParameters(); parameters.Add("@NhanVienId", model.NhanVienId); parameters.Add("@QuanLyId", model.QuanLyId); IList <ThongKe> list = SqlMapper.Query <ThongKe>((SqlConnection)con, "sp_LayThongKeNhanVienId", param: parameters, commandType: CommandType.StoredProcedure).ToList(); return(list); } catch (Exception ex) { throw ex; } }
public IList <ThongKe> LayThongKeNhanVienId(LayThongKeNhanVienId model) { return(_quanLyRepository.LayThongKeNhanVienId(model)); }
public IList <ThongKe> LayThongKeNhanVienId(LayThongKeNhanVienId model) { return(_quanLyService.LayThongKeNhanVienId(model)); }