Exemplo n.º 1
0
        public async Task <ActionResult> Delete(Attendance attendance)
        {
            try
            {
                await _attendanceService.DeleteAttendance(attendance);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(RedirectToAction(nameof(Index)));
            }
        }