public async Task <IActionResult> GetAllAsync() { try { var result = await _sampleService.GetAllAsync(); return(ReturnHttpResponse(result)); } catch (Exception ex) { Log.Error($"{this.GetCallingClassAndMethod()} : ", ex); return(StatusCode(500)); } }