/* * 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(); }
public Task <AccessRuleModel> Create(AccessRuleModel model) { throw new System.NotImplementedException(); }