Exemplo n.º 1
0
        public async Task <IActionResult> Delete_Post(string id)
        {
            try
            {
                await SchuelerProcessor.DeleteSchuelerAsync(ConnectionString, id);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Exemplo n.º 2
0
        public async Task <ActionResult <string> > DeleteSchueler(string id)
        {
            try
            {
                await Task.Delay(10);

                await SchuelerProcessor.DeleteSchuelerAsync(ConnectionString, id);

                return("schueler_deleted");
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }