public void Update(Entitiy.Concrete.Color color) { Color colorupdate = _Color.SingleOrDefault(c => c.ColorId == color.ColorId); colorupdate.ColorId = color.ColorId; colorupdate.ColorName = color.ColorName; }
public void Delete(Entitiy.Concrete.Color color) { Color colordelete = _Color.SingleOrDefault(c => c.ColorId == color.ColorId); _Color.Remove(colordelete); }
public Entitiy.Concrete.Color GetById(Entitiy.Concrete.Color color) { return(_Color.SingleOrDefault(c => c.ColorId == color.ColorId)); }
public void Add(Entitiy.Concrete.Color color) { _Color.Add(color); }