Ejemplo n.º 1
0
        public Result <IList <NetWorth> > GetByClient(int clientId)
        {
            var             result          = new Result <IList <NetWorth> >();
            NetWorthService NetWorthService = new NetWorthService();

            var lstNetWorth = NetWorthService.Get(clientId);

            result.Value     = (IList <NetWorth>)lstNetWorth;
            result.IsSuccess = true;
            return(result);
        }
Ejemplo n.º 2
0
        public Result Delete(NetWorth NetWorth)
        {
            var result = new Result();

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