public async Task <JsonResult> Mine() { return(await ProcessRequest(async() => { var response = await _localBlockChain.Mine(); return response == null ? GenerateAcceptedResponse("No unconfirmed transactions on chain") : GenerateOkResponse(response); })); }