public async Task <IActionResult> AddStorageServer(AddStorageServerCommand storageServer) { StorageServerResult Result = await _mediatr.Send(storageServer); return(HandleResult(Result, _mapper.Map <StorageServerDto>(Result.Server))); }
public async Task <IActionResult> UpdateStorageServer(string serverid) { StorageServerResult Result = await _mediatr.Send(new DeleteStorageServerCommand(serverid)); return(HandleResult(Result, _mapper.Map <StorageServerDto>(Result.Server))); }