示例#1
0
        public async Task <long> CreateMood(Mood mood)
        {
            _moodRepository.Create(mood);
            await _unit.Commit();

            return(mood.Id);
        }
示例#2
0
 public Mood Create(Mood item)
 {
     Repo.Create(item);
     Unit.SaveChanges();
     return(item);
 }