public void SeedingCircles() { var users = _databaseServices.GetUsers(); //A Bunch of circles Circles c1 = new Circles { circleName = "Thebois", UserIds = new List <string> { users[0].Id, users[1].Id, users[2].Id } }; Circles c2 = new Circles { circleName = "HighfivesAreforpussies", UserIds = new List <string> { users[2].Id, users[3].Id, users[4].Id } }; Circles c3 = new Circles { circleName = "MenInBlackisthebestmovieEVER", UserIds = new List <string> { users[0].Id, users[2].Id, users[4].Id } }; _databaseServices.CreateCircle(c1); _databaseServices.CreateCircle(c2); _databaseServices.CreateCircle(c3); }
public ActionResult <Circles> Create(Circles circle) { _databaseServices.CreateCircle(circle); return(CreatedAtRoute("GetCircle", new { id = circle.Id.ToString() }, circle)); }