Пример #1
0
        public async Task <string> Adauga([FromBody] StudentEntity student)
        {
            try
            {
                await _studentRepository.AdaugareStudent(student);

                return("Studentul a fost adaugat cu succes!");
            }
            catch (System.Exception e)
            {
                return("Eroare la adaugare: " + e.Message);

                throw;
            }
        }