public bool CreateSupportGroup(SupportGroupCreate model) { var entity = new SupportGroup() { Name = model.Name, Location = model.Location, PhoneNumber = model.PhoneNumber, Website = model.Website, Details = model.Details }; using (var ctx = new ApplicationDbContext()) { ctx.SupportGroups.Add(entity); return(ctx.SaveChanges() == 1); } }
public void SupportGroupDecree() { SupportGroup decree = new SupportGroup(6); Service.playerScript.QueuePlayerAction(decree); }