示例#1
0
        public itemView <Entity> GetRosterEventItem(string version, string itemId, string viewId)
        {
            DisableCaching();
            var result = new itemView <Entity>();

            try
            {
                result.item = new Entity();
                var service = new RosterDataService();
                var content = service.SingleRosterEvent(viewId.ToGuid(), itemId.ToGuid());
                result.item.Key    = content.Id.ToSafeString();
                result.item.Fields = content.RosterEventProperties.ExpandoToNamed();
            }
            catch (Exception ex)
            {
                result.message.message      = ex.Message;
                result.message.messageLevel = messageLevelEnum.critical;
                //HandleException(ex);
            }
            return(result);
        }