コード例 #1
0
        public Result <SCSS> Get(int id)
        {
            var         result      = new Result <SCSS>();
            SCSSService SCSSService = new SCSSService();

            result.Value     = SCSSService.Get(id);
            result.IsSuccess = true;
            return(result);
        }
コード例 #2
0
        public Result <IList <SCSS> > GetAll(int plannerId)
        {
            var         result      = new Result <IList <SCSS> >();
            SCSSService SCSSService = new SCSSService();

            result.Value     = SCSSService.GetAll(plannerId);
            result.IsSuccess = true;
            return(result);
        }
コード例 #3
0
        public Result Delete(SCSS SCSS)
        {
            var result = new Result();

            try
            {
                SCSSService SCSSService = new SCSSService();
                SCSSService.Delete(SCSS);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }