Ejemplo n.º 1
0
        public HttpResponseMessage GetMetaData(Guid versionId, Guid entityId)
        {
            IMetaDataService servMetaData = Utility.MyUnityHelper.UnityHelper.Resolve <IMetaDataService>();

            try
            {
                ICollection <TakeDocModel.MetaData> metadatas = servMetaData.GetByVersion(versionId, entityId);
                ICollection <object> json = servMetaData.GetJson(metadatas);
                return(Request.CreateResponse(json));
            }
            catch (Exception ex)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }