コード例 #1
0
ファイル: LogNotesController.cs プロジェクト: lulzzz/MyPortal
        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));
        }
コード例 #2
0
        public async Task <IActionResult> Delete([FromQuery] Guid logNoteId)
        {
            try
            {
                await _logNoteService.Delete(logNoteId);

                return(Ok());
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }