public ScratchCardModel AddScratchCard(ScratchCardModel scratchCardModel)
        {
            ScratchCardModel scratchCardModelResponse = new ScratchCardModel();

            Log.Information("File Name: " + _stackFrame.GetMethod().DeclaringType.Name + ".cs " + "NameSpace: " + _stackFrame.GetMethod().DeclaringType.Namespace + " Method Name: AddScratchCard() ");
            if (scratchCardModel != null)
            {
                try
                {
                    scratchCardModel.ScratchCardExpiryDate = DateTime.Now.AddDays(10).Date;
                    _scratchCardRespository.DeactiveUnusedScratchCards();
                    var     config                    = _mapperProfile.MapperScratchCardEntity();
                    IMapper iMapper                   = config.CreateMapper();
                    var     scratchCardEntity         = iMapper.Map <ScratchCardModel, ScratchCard>(scratchCardModel);
                    var     scratchCardEntityResponse = _scratchCardRespository.AddScratchCard(scratchCardEntity);

                    scratchCardModelResponse = iMapper.Map <ScratchCard, ScratchCardModel>(scratchCardEntityResponse);
                    Log.Information("File Name: " + _stackFrame.GetMethod().DeclaringType.Name + ".cs " + "AddScratchCard() Method Executed Successfully");
                }
                catch (Exception ex)
                {
                    Log.Error("Error Message: " + ex.Message + " " + ex.StackTrace);
                    throw;
                }
            }
            return(scratchCardModelResponse);
        }