コード例 #1
0
        public Result Add(Planner planner)
        {
            var result = new Result();

            try
            {
                PlannerService plannerService = new PlannerService();
                plannerService.Add(planner);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }