public bool EditDescription(EditCardDescriptionDto editCardDescriptionDto) { var card = _context.Cards.FirstOrDefault(x => x.Id == editCardDescriptionDto.Id); if (card == null) { return(false); } card.Description = editCardDescriptionDto.Description; _context.Update(card); _context.SaveChanges(); return(true); }
public void Update <T>(T entity) where T : class { _context.Update(entity); }