public async Task <IActionResult> Delete([FromQuery] Guid logNoteId) { return(await ProcessAsync(async() => { await _logNoteService.Delete(logNoteId); return Ok("Log note deleted successfully."); }, Permissions.Student.StudentLogNotes.EditLogNotes)); }
public async Task <IActionResult> Delete([FromQuery] Guid logNoteId) { try { await _logNoteService.Delete(logNoteId); return(Ok()); } catch (Exception e) { Console.WriteLine(e); throw; } }