//[ResponseType(typeof(ManualCashFlow))] public ActionResult NewCollection([FromBody] JsonElement json) { string authHeader = this.HttpContext.Request.Headers["Authorization"]; TokenModel tokenModel = new TokenModel(); ClaimsPrincipal auth = tokenModel.GetPrincipal(authHeader); if (auth.Identity.IsAuthenticated) { new ClickTracker("NewCollection", false, true, json.GetRawText(), auth.Identity.Name); NewCollectionsObj obj = JsonConvert.DeserializeObject <NewCollectionsObj>(json.GetRawText()); Collections collections = new Collections(); return(Ok(collections.CreateCollection(obj))); } return(Ok("")); }