Пример #1
0
        public Result <ClientSpouse> GetById(int id)
        {
            var result = new Result <ClientSpouse>();
            ClientSpouseService clientSpouseService = new ClientSpouseService();

            var client = clientSpouseService.Get(id);

            result.Value     = (ClientSpouse)client;
            result.IsSuccess = true;
            return(result);
        }
Пример #2
0
        public Result Update(ClientSpouse clientSpouse)
        {
            var result = new Result();

            try
            {
                ClientSpouseService clientSpouseService = new ClientSpouseService();
                clientSpouseService.Update(clientSpouse);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }