Refactored response and request models to dto naming. Adjusted mapper naming
This commit is contained in:
@@ -16,12 +16,12 @@ public class SystemController : Controller
|
||||
}
|
||||
|
||||
[HttpGet("info")]
|
||||
public async Task<ActionResult<SystemInfoResponse>> GetInfoAsync()
|
||||
public async Task<ActionResult<SystemInfoDto>> GetInfoAsync()
|
||||
{
|
||||
var cpuUsage = await ApplicationService.GetCpuUsageAsync();
|
||||
var memoryUsage = await ApplicationService.GetMemoryUsageAsync();
|
||||
|
||||
return new SystemInfoResponse(
|
||||
return new SystemInfoDto(
|
||||
cpuUsage,
|
||||
memoryUsage,
|
||||
ApplicationService.OperatingSystem,
|
||||
|
||||
Reference in New Issue
Block a user