Beispiel #1
0
        public bool CreateUserPermission(UserPermission userPermission)
        {
            bool isSuccess = true;

            try
            {
                userPermissionRepository.Add(userPermission);
                this.SaveRecord();
                ServiceUtil <UserPermission> .WriteActionLog(userPermission.Id, ENUMOperation.CREATE, userPermission);
            }
            catch (Exception ex)
            {
                isSuccess = false;
                logger.Error("Error in creating UserPermission", ex);
            }
            return(isSuccess);
        }
Beispiel #2
0
 public bool Add(UserPermission userPermissions)
 {
     return(userPermissionRepository.Add(userPermissions));
 }