public async Task <PageModel> CreateAsync([FromBody] PageModel model) { var entity = _pageFactory.ToEntity(model, new Page()); await _pageService.InsertAsync(entity); model.Id = entity.Id; return(model); }
public async Task <PageModel> CreateAsync([FromBody] PageModel model) { var entity = _pageFactory.ToEntity(model, new Page()); await _pageService.InsertAsync(entity); model.Id = entity.Id; return(model); }