public bool Delete(long id) { bool deleted = Repo.Delete(id); Unit.SaveChanges(); return(deleted); }
public void Delete(int id) { Mood currentMood = _moodRepository.FindBy(c => c.Id == id).FirstOrDefault(); _moodRepository.Delete(currentMood); _moodRepository.Save(); }
public async Task DeleteMood(long id) { await _moodRepository.Delete(id); await _unit.Commit(); }