示例#1
0
        public void Update(Entitiy.Concrete.Color color)
        {
            Color colorupdate = _Color.SingleOrDefault(c => c.ColorId == color.ColorId);

            colorupdate.ColorId   = color.ColorId;
            colorupdate.ColorName = color.ColorName;
        }
示例#2
0
        public void Delete(Entitiy.Concrete.Color color)
        {
            Color colordelete = _Color.SingleOrDefault(c => c.ColorId == color.ColorId);

            _Color.Remove(colordelete);
        }
示例#3
0
 public Entitiy.Concrete.Color GetById(Entitiy.Concrete.Color color)
 {
     return(_Color.SingleOrDefault(c => c.ColorId == color.ColorId));
 }
示例#4
0
 public void Add(Entitiy.Concrete.Color color)
 {
     _Color.Add(color);
 }