Exemple #1
0
        public Result <Others> Get(int id)
        {
            var           result       = new Result <Others>();
            OthersService othersSrvice = new OthersService();

            result.Value     = othersSrvice.Get(id);
            result.IsSuccess = true;
            return(result);
        }
Exemple #2
0
        public Result <IList <Others> > GetAll(int plannerId)
        {
            var           result       = new Result <IList <Others> >();
            OthersService othersSrvice = new OthersService();

            result.Value     = othersSrvice.GetAll(plannerId);
            result.IsSuccess = true;
            return(result);
        }
Exemple #3
0
        public Result Delete(Others Others)
        {
            var result = new Result();

            try
            {
                OthersService othersSrvice = new OthersService();
                othersSrvice.Delete(Others);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }