Beispiel #1
0
        public ActionResult Submit(IDEPostData data)
        {
            var repo = _GetRepo(data);

            if (repo == null)
            {
                return(new HttpNotFoundResult());
            }
            try
            {
                // TODO: in the future manage issues with versions in this repo
                var submission = SubmissionManager.Submit(repo);
                return(new JsonNetResult(submission));
            }
            catch (Exception ex)
            {
                Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
                return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError, ex.Message));
            }
        }