private void Reset() { Request = new SubscriptionCreateEmptyRequest(); LoadingVisible = false; ValidationMessage = null; ValidationResult = null; SubmitClicked = false; }
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))); } }