Ejemplo n.º 1
0
        public TestPlan Any(GetTestPlan request)
        {
            var plan = Db.SingleById<TestPlan>(request.Id);

            if (plan == null)
                throw HttpError.NotFound("Plan {0} does not exist".Fmt(request.Id));

            return plan;
        }
Ejemplo n.º 2
0
        public TestPlan Any(GetTestPlan request)
        {
            var plan = Db.SingleById <TestPlan>(request.Id);

            if (plan == null)
            {
                throw HttpError.NotFound("Plan {0} does not exist".Fmt(request.Id));
            }

            return(plan);
        }