public async Task UpdateWarrantAsync(Guid warrantId, WarrantCreateUpdateModel model)
        {
            var warrant = _mapper.Map <Warrant>(model);

            warrant.Id = warrantId;

            await _mongoRepository.ReplaceOneAsync(warrant);
        }
        public async Task <WarrantModel> CreateWarrantAsync(WarrantCreateUpdateModel model)
        {
            var warrant = _mapper.Map <Warrant>(model);

            var id = await _mongoRepository.InsertOneAsync(warrant);

            warrant.Id = id;

            return(_mapper.Map <WarrantModel>(warrant));
        }