public void Create(ApplicationJsonModel jsonData)
        {
            if (jsonData.Validate())
            {
                var application = new ApplicationModel(jsonData);
            }
            else
            {
                throw new HttpException(400, "Bad Request");
            }

            //if (ModelState.IsValid)
            //{
            //    applicationModel.Id = Guid.NewGuid();
            //    db.Application.Add(applicationModel);
            //    db.SaveChanges();
            //    return RedirectToAction("Index");
            //}


            return;
        }
Exemple #2
0
 public TransientStoreApplication(IClient client, ApplicationJsonModel model)
     : base(client, model)
 {
 }