Esempio n. 1
0
        public async Task <string> Delete(int id)
        {
            var response = _context.Courses.FindAsync(id);

            if (response == null)
            {
                return("User not found");
            }
            _context.Remove(response);
            return("");
        }