public async Task <IActionResult> DeleteAsync(string id) { await _platformServices.DeleteAsync(id); _logger.LogDebug($"Delete platform with id {id}"); return(RedirectToAction(nameof(GetAllAsync))); }
public async Task <IActionResult> DeleteAsync(int id) { var result = await _platformService.DeleteAsync(id); if (!result.Success) { return(BadRequest(result.Message)); } var PlatformResource = _mapper.Map <Platform, PlatformResource>(result.Resource); return(Ok(PlatformResource)); }
public async Task Delete(int id) { await platformService.DeleteAsync(id); }