Beispiel #1
0
        /*
         * AccessRule - AccessRuleModel
         */
        public static AccessRule ToEntity(this AccessRuleModel model)
        {
            if (model == null)
            {
                return(null);
            }

            return(new AccessRule
            {
                Id = string.IsNullOrEmpty(model.Id) ? 0 : int.Parse(model.Id),
                Description = model.Description,
                Properties = model.Properties.ToJson(),
                Name = model.Name,
                Type = model.Type,
                OwnerKeyId = int.Parse(model.OwnerKeyId),
                CreateDate = model.CreateDate.ToDbTime(),
                ModifiedDate = model.ModifiedDate.ToDbTime()
            });
        }
 public Task <AccessRuleModel> Update(string ownerPublicKey, AccessRuleModel model)
 {
     throw new System.NotImplementedException();
 }
Beispiel #3
0
 public Task <AccessRuleModel> Create(AccessRuleModel model)
 {
     throw new System.NotImplementedException();
 }