Beispiel #1
0
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                var user = await GetCurrentUserAsync();

                _service.Delete(user.Id, id);
                return(new OkResult());
            }
            catch (Exception e)
            {
                return(new BadRequestObjectResult(e.Message));
            }
        }
Beispiel #2
0
        public async Task <ActionResult <Record> > Delete(Guid id)
        {
            await service.Delete(id);

            return(Ok());
        }