c# - Use Async Method at Service Layer from MVC 5? -
i developing asp.net mvc 5 application. have been reading questions here suggest not use type of behavior want. high level of want achieve - mvc controller - calls method @ service layer , continues next line of code in controller not need return anything. method in service layer - want to call external web service has async methods want these run off on , write data db when return. is achievable or not best approach? to dummy out , test principle have following on controller: [acceptverbs(httpverbs.post)] public actionresult testasync() { _myservice.testasync(); return redirecttoaction("summary"); } at _myservice method looks follows: public async task testasync() { await task.delay(10000); var test = "testing"; _testrepository.add(test); } i hoping testasync method wait 10 seconds , check db , value testing added. not working - on ui after hitting button page goes summa...