Beispiel #1
0
        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();
        }
Beispiel #3
0
        public async Task DeleteMood(long id)
        {
            await _moodRepository.Delete(id);

            await _unit.Commit();
        }