Example #1
0
        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));
        }
Example #2
0
        public async Task <IActionResult> Delete([FromQuery] Guid logNoteId)
        {
            try
            {
                await _logNoteService.Delete(logNoteId);

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