public async Task <bool> UpdateAsync(SideEffectGroup model)
        {
            this.db.SideEffectGroups.Update(model);

            if (this.db.SideEffectGroups.Any(seff => seff.Name == model.Name && seff.Id != model.Id))
            {
                return(false);
            }

            await this.db.SaveChangesAsync();

            return(true);
        }
        public async Task <bool> CreateAsync(SideEffectGroup model)
        {
            if (this.db.SideEffectGroups.Any(seff => seff.Name == model.Name))
            {
                return(false);
            }

            this.db.Add(model);

            await this.db.SaveChangesAsync();

            return(true);
        }
        public async Task DeleteAsync(SideEffectGroup model)
        {
            this.db.SideEffectGroups.Remove(model);

            await this.db.SaveChangesAsync();
        }