public async Task <JsonResult> DeleteConfirmed(Guid studentId)
        {
            if (studentId == Guid.Empty)
            {
                return(Json(NotFound()));
            }

            _studentAppService.Delete(studentId);

            return(Json(Ok()));
        }
Example #2
0
 public async Task <IActionResult> Delete(int id)
 {
     return(CustomResponse(await _studentAppService.Delete(id)));
 }
 public void Delete(int id)
 {
     _studentAppService.Delete(id);
 }