public List <ContractModel> GetAllContracts()
        {
            return(LogIfOperationFailed(() =>
            {
                var contractEntity = _unitOfWork.ContractRepository.GetAll;
                var ContractModelList = new List <ContractModel>();
                // ToDo:Need to implement Automapper
                contractEntity.ToList().ForEach(m => { ContractModelList.Add(ContractMapper.ConvertEntityToModel(m)); });

                return ContractModelList;
            }, Resources.ExceptionGetForAllProviders, "Provider"));
        }
        public ContractModel GetContract(int id)
        {
            return(LogIfOperationFailed(() =>
            {
                var contractEntity = _unitOfWork.ContractRepository.Find(id);

                //ToDo:Need to implement Automapper

                ContractModel contractModel = ContractMapper.ConvertEntityToModel(contractEntity);

                return contractModel;
            }, Resources.ExceptionGetProvider, id));
        }