public async Task <long> CreateMood(Mood mood) { _moodRepository.Create(mood); await _unit.Commit(); return(mood.Id); }
public Mood Create(Mood item) { Repo.Create(item); Unit.SaveChanges(); return(item); }