public async Task <DisciplinaEditModelReturn> AddDisciplinaAsync(DisciplinaEditModel model) { var disciplina = new Disciplina(); mapper.Map(model, disciplina); await disciplinaRepository.AddAsync(disciplina); await context.SaveChangesAsync(); return(mapper.Map(disciplina, new DisciplinaEditModelReturn())); }