Exemple #1
0
        public IActionResult deleteStudent(string id)
        {
            var res = _service.deleteStudent(_context, id);

            if (res.Error == "")
            {
                return(Ok(res.students));
            }
            else
            {
                return(BadRequest(res.Error));
            }
        }