public async Task <int> CreateAsync(AboutRequestModel model) { var about = new Data.Models.About { Description = model.Description, Headline = model.Headline, Links = model.Links.Select(l => new Link { Description = l.Description, Position = l.Position, Url = l.Url, ViewName = l.ViewName }).ToList() }; await _dbContext.AddAsync(about); await _dbContext.SaveChangesAsync(); return(about.Id); }
private void Run() { var about = new Data.Models.About(); Feedback.Show(about); }