예제 #1
0
        public async Task <IActionResult> AddStorageServer(AddStorageServerCommand storageServer)
        {
            StorageServerResult Result = await _mediatr.Send(storageServer);

            return(HandleResult(Result, _mapper.Map <StorageServerDto>(Result.Server)));
        }
예제 #2
0
        public async Task <IActionResult> UpdateStorageServer(string serverid)
        {
            StorageServerResult Result = await _mediatr.Send(new DeleteStorageServerCommand(serverid));

            return(HandleResult(Result, _mapper.Map <StorageServerDto>(Result.Server)));
        }