public ProviderModel GetProvider(int id)
        {
            return(LogIfOperationFailed(() =>
            {
                var providerEntity = _unitOfWork.ProviderRepository.Find(id);

                //ToDo:Need to implement Automapper

                ProviderModel providerModel = ProviderMapper.ConvertEntityToModel(providerEntity);

                return providerModel;
            }, Resources.ExceptionGetProvider, id));
        }
        public List <ProviderModel> GetAllProviders()
        {
            return(LogIfOperationFailed(() =>
            {
                var providerEntity = _unitOfWork.ProviderRepository.GetAll;
                var providerModelList = new List <ProviderModel>();
                // ToDo:Need to implement Automapper
                providerEntity
                .ToList()
                .ForEach(m => { providerModelList.Add(ProviderMapper.ConvertEntityToModel(m)); });

                return providerModelList;
            }, Resources.ExceptionGetForAllProviders));
        }