Exemple #1
0
        public async Task <ActionResult> Delete(int id)
        {
            try
            {
                VerifyUser();
                await _otherService.Delete(id);

                return(NoContent());
            }
            catch (Exception e)
            {
                var result = new ResultFormatter(API_VERSION, General.INTERNAL_ERROR_STATUS_CODE, e.Message)
                             .Fail();
                return(StatusCode(General.INTERNAL_ERROR_STATUS_CODE, result));
            }
        }