Beispiel #1
0
        public App Create(AppProfileViewModel model)
        {
            var app = _mapper.Map <App>(model);

            _context.Apps.InsertOne(app);
            return(app);
        }
        public ActionResult <AppProfileViewModel> Create([FromBody] AppProfileViewModel model)
        {
            var app = _appService.Create(model);

            return(CreatedAtRoute("GetApp", new { id = app.Id.ToString() }, model));
        }