public bool CreateFeature(FeatureDataModel f)
        {
            Feature fet = AutoMapper.Mapper.Map <Feature>(f);

            fet = Work.FeaturesRepository.Create(fet);
            Work.FeaturesRepository.Save();
            return(fet.Id > 0);
        }
        public bool Update(int id, FeatureDataModel f)
        {
            Feature fet = Work.FeaturesRepository.GetById(id);

            fet.Name        = f.Name;
            fet.Description = f.Description;
            fet.Version     = f.Version;
            Work.FeaturesRepository.Save();
            return(true);
        }
        public List <FeatureDataModel> GetFeatureList()
        {
            var features = Work.FeaturesRepository.GetData().ToList();
            List <FeatureDataModel> featureList = new List <FeatureDataModel>();

            foreach (Feature f in features)
            {
                FeatureDataModel f1 = AutoMapper.Mapper.Map <FeatureDataModel>(f);
                featureList.Add(f1);
            }
            return(featureList);
        }