Exemple #1
0
 private void Reset()
 {
     Request           = new SubscriptionCreateEmptyRequest();
     LoadingVisible    = false;
     ValidationMessage = null;
     ValidationResult  = null;
     SubmitClicked     = false;
 }
Exemple #2
0
        public async Task <IActionResult> CreateEmpty([FromBody] SubscriptionCreateEmptyRequest request)
        {
            try
            {
                var user = await userManager.GetUserAsync(User);

                var result = subscriptionManager.CreateEmpty(user, request.Name, request.ParentFolderId);
                return(Ok(responseFactory.Success(modelFactory.ToApi(result))));
            }
            catch (Exception ex)
            {
                return(BadRequest(responseFactory.Error(ex.Message)));
            }
        }