Exemplo n.º 1
0
        public async Task <ActionResult> selecteStudent([FromBody] UpdateStudBody body)
        {
            var students = await _dm.GetCustomStudentList(body.selectModel);

            if (students == null)
            {
                return(NotFound());
            }
            return(Ok(JsonConvert.SerializeObject(students)));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> UpdateStudent([FromBody] UpdateStudBody body)
        {
            await _dm.UpdateStudent(body.stud);

            return(Ok());
        }