Пример #1
0
        void IRepository <Women> .Delete(int id)
        {
            var model = Women.FirstOrDefault(x => x.Id == id);

            Women.Remove(model);
            SaveChanges();
        }
Пример #2
0
 Women IRepository <Women> .Get(int id)
 {
     return(Women.FirstOrDefault(x => x.Id == id));
 }