Ejemplo n.º 1
0
        public async Task <bool> SetFavoriteStatus(int assessmentFormKey, bool favorited)
        {
            var loggedInUserID = _userService.GetCurrentUserId();

            CoreServiceDevReference.CoreServiceClient coreServiceClient = new CoreServiceDevReference.CoreServiceClient();
            try
            {
                await coreServiceClient.SetFavoriteStatusAsync(int.Parse(loggedInUserID), assessmentFormKey, favorited);

                return(true);
            }
            catch
            {
                return(false);
            }
        }