示例#1
0
        public async Task <IActionResult> GetProfile(int id)
        {
            var dbResponse = await _db.GetProfile(id);

            if (dbResponse.ResponseCode == ReturnCodesConstant.R00)
            {
                var response = await _db.GenerateProfileDetails(dbResponse.ResponseData[0]);

                return(_responsesService.GetResponse(response));
            }
            else
            {
                return(_responsesService.GetResponse(dbResponse));
            }
        }