Пример #1
0
        public int CreateRole(int tenantId, int operatorId, Role role)
        {
            role.CreatedBy   = operatorId;
            role.CreatedTime = DateTime.Now;
            role.UpdatedBy   = operatorId;
            role.UpdatedTime = DateTime.Now;
            var entity = role.ToDataObject();

            return(_roleDao.CreateRole(tenantId, operatorId, entity));
        }