Пример #1
0
        public ServiceResponse <bool> AddActivityToActivity(int parentActivityId, int activityId)
        {
            var serviceResponse = new ServiceResponse <bool>();

            try
            {
                var result = authorisationManagerDataProxy.AddActivityToActivity(parentActivityId, activityId);
                serviceResponse.Payload = result;
            }
            catch (Exception ex)
            {
                serviceResponse.IsError = true;
                serviceResponse.Message = ex.Message;
                logger.Log("AuthorisationManagerServer.AddActivityToActivity - " + ex.Message, LogCategory.Exception, LogPriority.None);
                logger.Log("parentActivityId=" + parentActivityId + ";activityId=" + activityId, LogCategory.Exception, LogPriority.None);
                logger.Log(ex.StackTrace, LogCategory.Exception, LogPriority.None);
            }

            return(serviceResponse);
        }