Example #1
0
 public ActionResult Post(NewDeploy deploy)
 {
     ConventNewDeployToDeploy(deploy);
     var repository = new DeployRepository();
     repository.Update(deploy);
     return JsonNet(new { success = true });
 }
Example #2
0
        public ActionResult Delete(string id)
        {
            var repository = new DeployRepository();
            var first = repository.FirstOrDefault(x => x.Id == id);
            if (first != null)
            {
                log.InfoFormat("Deleting {0}\n{1}", first.Id, first.ToJson());
                first.DateDeleted = DateTime.UtcNow;
                repository.Update(first);
            }

            return JsonNet(new { success = true });
        }