public IActionResult DiemDanhNhanVien(LayDiemDanhNhanVienId model) { var url = $"{Common.Common.ApiUrl}/quanly/LayDiemDanhNhanVienId"; var responseData = GetMethod(url, model); var diemDanh = new DiemDanh(); diemDanh = JsonConvert.DeserializeObject <DiemDanh>(responseData); return(View(diemDanh)); }
public IActionResult DiemDanhNhanVienAjax([FromBody] LayDiemDanhNhanVienId model) { var url = $"{Common.Common.ApiUrl}/quanly/LayDiemDanhNhanVienId"; var responseData = GetMethod(url, model); var diemDanh = new DiemDanh(); diemDanh = JsonConvert.DeserializeObject <DiemDanh>(responseData); return(Json(new { response = diemDanh, code = 1 })); }
public DiemDanh LayDiemDanhNhanVienId(LayDiemDanhNhanVienId model) { try { DynamicParameters parameters = new DynamicParameters(); parameters.Add("@NhanVienId", model.NhanVienId); parameters.Add("@QuanLyId", model.QuanLyId); parameters.Add("@Ngay", model.Ngay); return(SqlMapper.Query <DiemDanh>((SqlConnection)con, "sp_LayDiemDanhNhanVienId", param: parameters, commandType: CommandType.StoredProcedure).FirstOrDefault()); } catch (Exception ex) { throw ex; } }
public DiemDanh LayDiemDanhNhanVienId(LayDiemDanhNhanVienId model) { return(_quanLyRepository.LayDiemDanhNhanVienId(model)); }
public DiemDanh LayDiemDanhNhanVienId(LayDiemDanhNhanVienId model) { return(_quanLyService.LayDiemDanhNhanVienId(model)); }