Beispiel #1
0
        public GetMonthlyPlanOutput Get(int id)
        {
            var plan = _planRepository.GetIncluding(u => u.Id == id, new Expression <Func <MonthlyPlan, object> >[] { u => u.Project }).FirstOrDefault();

            if (plan == null)
            {
                throw new EntityException("Id", id, "MonthlyPlan", "不存在");
            }
            return(plan.MapTo <GetMonthlyPlanOutput>());
        }