public ReportDto Update(ReportDto reportDto)
        {
            var validator = new ReportValidator();

            validator.ValidateAndThrow(reportDto);
            var entity = new Report();

            _mapper.Map(reportDto, entity);
            entity.StatusId   = 1;
            entity.UpdateDate = System.DateTime.UtcNow;
            _unitOfWork.ReportRepository.Update(entity);
            _unitOfWork.Save();
            _mapper.Map(entity, reportDto);
            return(reportDto);
        }
        public async Task <ReportDto> Insert(ReportDto reportDto)
        {
            var validator = new ReportValidator();

            validator.ValidateAndThrow(reportDto);
            var entity = new Report();

            _mapper.Map(reportDto, entity);
            entity.CreateDate = System.DateTime.UtcNow;
            entity.UpdateDate = System.DateTime.UtcNow;
            entity.StatusId   = 1;
            await _unitOfWork.ReportRepository.Insert(entity);

            await _unitOfWork.SaveAsync();

            _mapper.Map(entity, reportDto);
            return(reportDto);
        }