public Contracts.Initiatives.Initiative Create(Contracts.Initiatives.Initiative request) { var entity = new Initiative { Id = Guid.NewGuid(), Title = request.Title, Description = request.Description, PassRate = request.Passrate }; context.Initiatives.Add(entity); context.SaveChanges(); var initiative = entity.Map(); return(initiative); }
public Contracts.Initiatives.Initiative Create(Contracts.Initiatives.Initiative request) { return(StubAdapter.Create(request)); }