public virtual async Task <ActivitySubscribeSetting> CreateAsync(ActivitySubscribeSettingDto setting) { var createSetting = new ActivitySubscribeSetting { ActivityId = setting.ActivityId, CanSubscribe = setting.CanSubscribe, SubscribeNotes = setting.SubscribeNotes }; await _activitySubscribeSettingRepository.AddAsync(createSetting); return(createSetting); }
public virtual ActivitySubscribeSetting Create(ActivitySubscribeSettingDto setting) { var createSetting = new ActivitySubscribeSetting { ActivityId = setting.ActivityId, CanSubscribe = setting.CanSubscribe, SubscribeNotes = setting.SubscribeNotes }; _activitySubscribeSettingRepository.Add(createSetting); return(createSetting); }