public async Task <object> Post(RetrospectiveModel value) { Retrospective retro = RetrospectiveFactory.Create(value.Description, value.SelectedTemplate); ResourceResponse <Document> result = await repository.Save(retro); var manager = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>(); var identityUser = manager.FindById(HttpContext.Current.User.Identity.GetUserId()); if (identityUser.Retrospectives == null) { identityUser.Retrospectives = new List <RetrospectiveLocation>(); } identityUser.Retrospectives.Add(new RetrospectiveLocation() { Description = value.Description, CreatedOn = DateTime.UtcNow, Id = result.Resource.Id }); identityUser.PhoneNumberConfirmed = true; await manager.UpdateAsync(identityUser); return(new { id = result.Resource.Id }); }
public void Put(string id, RetrospectiveModel value) { }