コード例 #1
0
        public async Task <IActionResult> DeleteAsync(int id)
        {
            await _fieldTypesService.RemoveByIdAsync(id);

            return(Ok());
        }
コード例 #2
0
        public void RemoveByIdAsync_ExistingId_NoException()
        {
            var ex = Record.ExceptionAsync(() => _fieldTypeService.RemoveByIdAsync(1));

            Assert.Null(ex.Result);
        }