public IHttpActionResult GetUserSubscriptions() { try { ItemsResponse <UserSubscriptions> response = new ItemsResponse <UserSubscriptions>(); response.Items = _chargeService.ReadAllSubscriptions(); return(Ok(response)); } catch (Exception ex) { _appLogService.Insert(new AppLogAddRequest { AppLogTypeId = 1, Message = ex.Message, StackTrace = ex.StackTrace, Title = "Error in " + GetType().Name + " " + System.Reflection.MethodBase.GetCurrentMethod().Name, UserBaseId = _currentUserId }); return(BadRequest(ex.Message)); } }